chore(nvim): updated config
This commit is contained in:
parent
d1f612bf79
commit
e40e156d85
5 changed files with 45 additions and 29 deletions
5
.config/nvim/ftdetect/sage.vim
Normal file
5
.config/nvim/ftdetect/sage.vim
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
augroup SageDetect
|
||||||
|
au!
|
||||||
|
au BufRead,BufNewFile *sage set ft=python
|
||||||
|
augroup END
|
|
@ -19,14 +19,6 @@ if not lspkind_status_ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
cmp.event:on("menu_opened", function()
|
|
||||||
vim.b.copilot_suggestion_hidden = true
|
|
||||||
end)
|
|
||||||
|
|
||||||
cmp.event:on("menu_closed", function()
|
|
||||||
vim.b.copilot_suggestion_hidden = false
|
|
||||||
end)
|
|
||||||
|
|
||||||
-- some other good icons
|
-- some other good icons
|
||||||
local kind_icons = {
|
local kind_icons = {
|
||||||
Text = "",
|
Text = "",
|
||||||
|
|
|
@ -4,8 +4,5 @@ require("conform").setup({
|
||||||
javascript = { "prettierd" },
|
javascript = { "prettierd" },
|
||||||
markdown = { "mdformat" },
|
markdown = { "mdformat" },
|
||||||
json = {"jq"}
|
json = {"jq"}
|
||||||
},
|
}
|
||||||
format_on_save = {
|
|
||||||
lsp_fallback = true,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -156,7 +156,7 @@ lazy.setup({
|
||||||
{
|
{
|
||||||
"rcarriga/nvim-dap-ui",
|
"rcarriga/nvim-dap-ui",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
dependencies = "mfussenegger/nvim-dap",
|
dependencies = {"mfussenegger/nvim-dap","nvim-neotest/nvim-nio"},
|
||||||
config = function()
|
config = function()
|
||||||
local dap = require("dap")
|
local dap = require("dap")
|
||||||
local dapui = require("dapui")
|
local dapui = require("dapui")
|
||||||
|
@ -220,11 +220,13 @@ lazy.setup({
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
'tpope/vim-commentary',
|
||||||
"mrcjkb/rustaceanvim",
|
|
||||||
version = "^4", -- Recommended
|
-- {
|
||||||
ft = { "rust" },
|
-- "mrcjkb/rustaceanvim",
|
||||||
},
|
-- version = "^4", -- Recommended
|
||||||
|
-- ft = { "rust" },
|
||||||
|
-- },
|
||||||
|
|
||||||
"barreiroleo/ltex-extra.nvim",
|
"barreiroleo/ltex-extra.nvim",
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,9 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
||||||
local telescope = require("telescope.builtin")
|
local telescope = require("telescope.builtin")
|
||||||
local conform = require("conform")
|
local conform = require("conform")
|
||||||
|
|
||||||
|
local client = vim.lsp.get_client_by_id(ev.data.client_id)
|
||||||
|
client.server_capabilities.semanticTokensProvider = nil
|
||||||
|
|
||||||
-- Mappings.
|
-- Mappings.
|
||||||
-- See `:help vim.lsp.*` for documentation on any of the below functions
|
-- See `:help vim.lsp.*` for documentation on any of the below functions
|
||||||
local bufopts = { noremap = true, silent = true, buffer = ev.buf }
|
local bufopts = { noremap = true, silent = true, buffer = ev.buf }
|
||||||
|
@ -62,12 +65,6 @@ mason_lspconfig.setup_handlers({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
["hls"] = function()
|
|
||||||
lspconfig["hls"].setup({
|
|
||||||
capabilities = capabilities,
|
|
||||||
filetypes = { 'haskell', 'lhaskell', 'cabal' },
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
["ltex"] = function()
|
["ltex"] = function()
|
||||||
lspconfig["ltex"].setup({
|
lspconfig["ltex"].setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
@ -77,15 +74,38 @@ mason_lspconfig.setup_handlers({
|
||||||
require("ltex_extra").setup()
|
require("ltex_extra").setup()
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
end,
|
||||||
|
["basedpyright"] = function ()
|
||||||
|
lspconfig["basedpyright"].setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
settings = {
|
||||||
|
verboseOutput = true,
|
||||||
|
autoImportCompletion = true,
|
||||||
|
basedpyright = {
|
||||||
|
analysis = {
|
||||||
|
typeCheckingMode = "all",
|
||||||
|
autoSearchPaths = true,
|
||||||
|
useLibraryCodeForTypes = true,
|
||||||
|
diagnosticMode = "openFilesOnly",
|
||||||
|
indexing = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
lspconfig["hls"].setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
filetypes = { 'haskell', 'lhaskell', 'cabal' },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vim.g.rustaceanvim = {
|
|
||||||
server = {
|
--vim.g.rustaceanvim = {
|
||||||
capabilities = capabilities,
|
-- server = {
|
||||||
},
|
-- capabilities = capabilities,
|
||||||
}
|
-- },
|
||||||
|
--}
|
||||||
|
|
Loading…
Add table
Reference in a new issue