mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2025-12-07 22:48:00 -08:00
update nvim config and squash some bugs
This commit is contained in:
@@ -14,6 +14,12 @@ return {
|
||||
name = "copilot",
|
||||
opts = {
|
||||
stream = true,
|
||||
tools = true,
|
||||
vision = true,
|
||||
},
|
||||
features = {
|
||||
text = true,
|
||||
tokens = true,
|
||||
},
|
||||
model = {
|
||||
-- default = "claude-3.7-sonnet-thought",
|
||||
|
||||
9
.config/nvim/lua/plugins/lsp_lines.lua
Normal file
9
.config/nvim/lua/plugins/lsp_lines.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
||||
config = function()
|
||||
-- lsp_lines
|
||||
vim.diagnostic.config({ virtual_text = false })
|
||||
-- --
|
||||
vim.keymap.set("", "<Leader>tl", require("lsp_lines").toggle, { desc = "Toggle lsp_lines" })
|
||||
end,
|
||||
}
|
||||
@@ -38,7 +38,6 @@ return {
|
||||
|
||||
for _, lsp in ipairs(servers) do
|
||||
if lsp == "lua_ls" then
|
||||
vim.lsp.enable(lsp)
|
||||
vim.lsp.config("lua_ls", {
|
||||
on_init = function(client)
|
||||
if client.workspace_folders then
|
||||
@@ -76,8 +75,8 @@ return {
|
||||
},
|
||||
handlers = {},
|
||||
})
|
||||
elseif lsp == "basedpyright" then
|
||||
vim.lsp.enable(lsp)
|
||||
elseif lsp == "basedpyright" then
|
||||
vim.lsp.config(lsp, {
|
||||
analysis = {
|
||||
autoSearchPaths = true,
|
||||
@@ -89,6 +88,7 @@ return {
|
||||
callArgumentNames = true,
|
||||
},
|
||||
})
|
||||
vim.lsp.enable(lsp)
|
||||
else
|
||||
vim.lsp.enable(lsp)
|
||||
-- vim.lsp.config(lsp, {
|
||||
|
||||
@@ -72,7 +72,7 @@ return {
|
||||
views = {
|
||||
cmdline_popup = {
|
||||
border = {
|
||||
style = "none",
|
||||
style = "rounded",
|
||||
padding = { 0, 0 },
|
||||
},
|
||||
filter_options = {},
|
||||
|
||||
Reference in New Issue
Block a user