Compare commits

..

No commits in common. "c006042ba347980181fbc91a50801d9f3ab69ff4" and "3243063e629ac0d78800d96b9072635457e38a90" have entirely different histories.

5 changed files with 18 additions and 23 deletions

View File

@ -90,7 +90,12 @@ vim.api.nvim_create_autocmd("LspAttach", {
) )
-- Documentation -- Documentation
-- vim.keymap.set("n", "<C-k>", vim.lsp.buf.signature_help, { desc = "Signature Documentation" }) vim.keymap.set("n", "K", function()
vim.lsp.buf.hover({ border = window.border })
end, { desc = "Hover Documentation" })
-- vim.keymap.set("n", "<C-k>", function()
-- vim.lsp.buf.signature_help({ border = border })
-- end, { desc = "Signature Documentation" })
end, end,
}) })
@ -123,7 +128,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
end, end,
}) })
-- Disable lsp based syntax highlighting -- Setup cursor hover symbol highlight
vim.api.nvim_create_autocmd("LspAttach", { vim.api.nvim_create_autocmd("LspAttach", {
callback = function(event) callback = function(event)
local client = vim.lsp.get_client_by_id(event.data.client_id) local client = vim.lsp.get_client_by_id(event.data.client_id)

View File

@ -1,5 +1,5 @@
local diagnostic = require("symbols.diagnostic") local diagnostic = require("symbols.diagnostic")
local window = require("symbols.window") local border = require("symbols.window").border
-- Set highlight on search -- Set highlight on search
vim.o.hlsearch = true vim.o.hlsearch = true
@ -68,9 +68,6 @@ vim.o.list = true
-- Fold settings -- Fold settings
vim.o.foldlevelstart = 99 vim.o.foldlevelstart = 99
-- Windows borders
-- vim.o.winborder = window.border
-- LSP config -- LSP config
vim.diagnostic.config({ vim.diagnostic.config({
severity_sort = true, severity_sort = true,

View File

@ -1,3 +1,4 @@
local window = require("symbols.window")
return { return {
"saghen/blink.cmp", "saghen/blink.cmp",
-- optional: provides snippets for the snippet source -- optional: provides snippets for the snippet source
@ -55,6 +56,9 @@ return {
documentation = { documentation = {
auto_show = true, auto_show = true,
auto_show_delay_ms = 0, auto_show_delay_ms = 0,
window = {
border = window.border,
},
}, },
menu = { menu = {
auto_show = true, auto_show = true,
@ -73,11 +77,15 @@ return {
}, },
}, },
}, },
border = window.border,
}, },
}, },
signature = { signature = {
enabled = true, enabled = true,
window = {
border = window.border,
},
trigger = { trigger = {
show_on_accept = true, show_on_accept = true,
show_on_insert = true, show_on_insert = true,

View File

@ -1,5 +1,4 @@
-- https://github.com/nvim-telescope/telescope.nvim -- https://github.com/nvim-telescope/telescope.nvim
local window = require("symbols.window")
-- TODO: Ensure installed ripgrep -- TODO: Ensure installed ripgrep
return { return {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
@ -36,7 +35,7 @@ return {
["<S-Tab>"] = "move_selection_better", ["<S-Tab>"] = "move_selection_better",
}, },
}, },
borderchars = window.borderchars, borderchars = require("symbols.window").borderchars,
}, },
extensions = { extensions = {
["ui-select"] = { ["ui-select"] = {
@ -45,20 +44,6 @@ return {
}, },
}) })
-- HACK: Workaround until new borders are fixed in telescope
vim.api.nvim_create_autocmd("User", {
pattern = "TelescopeFindPre",
callback = function()
vim.opt_local.winborder = "none"
vim.api.nvim_create_autocmd("WinLeave", {
once = true,
callback = function()
vim.opt_local.winborder = window.border
end,
})
end,
})
require("telescope").load_extension("fzf") require("telescope").load_extension("fzf")
require("telescope").load_extension("ui-select") require("telescope").load_extension("ui-select")

View File

@ -20,7 +20,7 @@ return {
{ "clangd", { { "clangd", {
cmd = { "clangd", "--offset-encoding=utf-16", "--clang-tidy" }, cmd = { "clangd", "--offset-encoding=utf-16", "--clang-tidy" },
} }, } },
"basedpyright", "pyright",
{ {
"lua_ls", "lua_ls",
{ {