feat(dev plugins): update plugins configs for developing
This commit is contained in:
parent
d35acd0125
commit
ff20726ade
|
@ -89,6 +89,7 @@ cmp.setup{
|
|||
|
||||
sources = {
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "luasnip" },
|
||||
{ name = "buffer" },
|
||||
{ name = "path" },
|
||||
},
|
||||
|
|
|
@ -2,6 +2,6 @@ require('nvim-ts-autotag').setup({
|
|||
opts = {
|
||||
enable_close = true,
|
||||
enable_rename = true,
|
||||
enable_close_on_slash = false
|
||||
enable_close_on_slash = true,
|
||||
},
|
||||
})
|
||||
|
|
|
@ -91,9 +91,9 @@ require("dapui").setup()
|
|||
|
||||
local dap, dapui = require("dap"), require("dapui")
|
||||
|
||||
|
||||
dap.listeners.after.event_initialized["dapui_config"] = function()
|
||||
dapui.open({})
|
||||
end
|
||||
|
||||
vim.keymap.set('n', '<leader>ui', require 'dapui'.toggle)
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
local lspconfig = require("lspconfig")
|
||||
|
||||
lspconfig.clangd.setup({})
|
||||
|
||||
lspconfig.lua_ls.setup({
|
||||
settings = {
|
||||
Lua = {
|
||||
|
|
|
@ -1,25 +1,22 @@
|
|||
local navic = require("nvim-navic")
|
||||
|
||||
vim.g.rustaceanvim = {
|
||||
tools = {
|
||||
autoSetHints = true,
|
||||
inlay_hints = {
|
||||
show_parameter_hints = true,
|
||||
parameter_hints_prefix = "in: ", -- "<- "
|
||||
other_hints_prefix = "out: " -- "=> "
|
||||
}
|
||||
},
|
||||
server = {
|
||||
on_attach = function(client, bufnr)
|
||||
navic.attach(client, bufnr)
|
||||
end,
|
||||
settings = {
|
||||
['rust-analyzer'] = {
|
||||
procMacro = {
|
||||
enable = true,
|
||||
},
|
||||
assist = {
|
||||
importEnforceGranularity = true,
|
||||
importPrefix = "create"
|
||||
},
|
||||
cargo = { allFeatures = true },
|
||||
cargo = {
|
||||
allFeatures = true,
|
||||
},
|
||||
checkOnSave = {
|
||||
command = "clippy",
|
||||
allFeatures = true
|
||||
|
|
|
@ -4,5 +4,8 @@ require'nvim-treesitter.configs'.setup {
|
|||
auto_install = true,
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
autotag = {
|
||||
enable = true,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue