Compare commits

...

2 Commits

Author SHA1 Message Date
c006042ba3
Use new border option 2025-05-26 19:04:33 +02:00
1339992206
Switched to basedpywright 2025-05-26 18:21:57 +02:00
5 changed files with 23 additions and 18 deletions

View File

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

View File

@ -1,5 +1,5 @@
local diagnostic = require("symbols.diagnostic")
local border = require("symbols.window").border
local window = require("symbols.window")
-- Set highlight on search
vim.o.hlsearch = true
@ -68,6 +68,9 @@ 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,

View File

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

View File

@ -1,4 +1,5 @@
-- https://github.com/nvim-telescope/telescope.nvim
local window = require("symbols.window")
-- TODO: Ensure installed ripgrep
return {
"nvim-telescope/telescope.nvim",
@ -35,7 +36,7 @@ return {
["<S-Tab>"] = "move_selection_better",
},
},
borderchars = require("symbols.window").borderchars,
borderchars = window.borderchars,
},
extensions = {
["ui-select"] = {
@ -44,6 +45,20 @@ 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")

View File

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