Compare commits
No commits in common. "c006042ba347980181fbc91a50801d9f3ab69ff4" and "3243063e629ac0d78800d96b9072635457e38a90" have entirely different histories.
c006042ba3
...
3243063e62
|
@ -90,7 +90,12 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
|||
)
|
||||
|
||||
-- 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,
|
||||
})
|
||||
|
||||
|
@ -123,7 +128,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
|||
end,
|
||||
})
|
||||
|
||||
-- Disable lsp based syntax highlighting
|
||||
-- Setup cursor hover symbol highlight
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
callback = function(event)
|
||||
local client = vim.lsp.get_client_by_id(event.data.client_id)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
local diagnostic = require("symbols.diagnostic")
|
||||
local window = require("symbols.window")
|
||||
local border = require("symbols.window").border
|
||||
|
||||
-- Set highlight on search
|
||||
vim.o.hlsearch = true
|
||||
|
@ -68,9 +68,6 @@ vim.o.list = true
|
|||
-- Fold settings
|
||||
vim.o.foldlevelstart = 99
|
||||
|
||||
-- Windows borders
|
||||
-- vim.o.winborder = window.border
|
||||
|
||||
-- LSP config
|
||||
vim.diagnostic.config({
|
||||
severity_sort = true,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
local window = require("symbols.window")
|
||||
return {
|
||||
"saghen/blink.cmp",
|
||||
-- optional: provides snippets for the snippet source
|
||||
|
@ -55,6 +56,9 @@ return {
|
|||
documentation = {
|
||||
auto_show = true,
|
||||
auto_show_delay_ms = 0,
|
||||
window = {
|
||||
border = window.border,
|
||||
},
|
||||
},
|
||||
menu = {
|
||||
auto_show = true,
|
||||
|
@ -73,11 +77,15 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
border = window.border,
|
||||
},
|
||||
},
|
||||
|
||||
signature = {
|
||||
enabled = true,
|
||||
window = {
|
||||
border = window.border,
|
||||
},
|
||||
trigger = {
|
||||
show_on_accept = true,
|
||||
show_on_insert = true,
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
-- https://github.com/nvim-telescope/telescope.nvim
|
||||
local window = require("symbols.window")
|
||||
-- TODO: Ensure installed ripgrep
|
||||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
|
@ -36,7 +35,7 @@ return {
|
|||
["<S-Tab>"] = "move_selection_better",
|
||||
},
|
||||
},
|
||||
borderchars = window.borderchars,
|
||||
borderchars = require("symbols.window").borderchars,
|
||||
},
|
||||
extensions = {
|
||||
["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("ui-select")
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ return {
|
|||
{ "clangd", {
|
||||
cmd = { "clangd", "--offset-encoding=utf-16", "--clang-tidy" },
|
||||
} },
|
||||
"basedpyright",
|
||||
"pyright",
|
||||
{
|
||||
"lua_ls",
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user