Updated config

This commit is contained in:
2023-10-20 15:55:21 +02:00
parent 57486c10d7
commit ab6b2b1850
15 changed files with 63 additions and 79 deletions

View File

@ -46,9 +46,9 @@ return {
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"L3MON4D3/LuaSnip",
-- "hrsh7th/cmp-buffer",
-- "hrsh7th/cmp-path",
-- "L3MON4D3/LuaSnip",
},
config = function()
local cmp = require("cmp")
@ -72,11 +72,11 @@ return {
["<C-e>"] = cmp.mapping.abort(),
["<cr>"] = cmp.mapping.confirm({ select = true }),
},
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
},
-- snippet = {
-- expand = function(args)
-- require("luasnip").lsp_expand(args.body)
-- end,
-- },
sources = {
{ name = "nvim_lsp" },
{ name = "luasnip" },

View File

@ -6,17 +6,7 @@ return {
},
opts = {
servers = {
denols = {
filetypes = {
"javascript",
"typescript",
"markdown",
"json",
},
init_options = {
lint = true,
},
},
clangd = {},
gopls = {},
lua_ls = {
settings = {
@ -27,11 +17,6 @@ return {
},
},
},
--cssls = {},
--html = {},
--jsonls = {},
--tsserver = {},
--svelte = {},
},
},
config = function(_, opts)

View File

@ -0,0 +1,8 @@
return {
"rcarriga/nvim-notify",
event = "VeryLazy",
opts = {
background_colour = "#000000",
},
config = true,
}

View File

@ -1,7 +0,0 @@
return {
"NvChad/nvterm",
keys = {
{ "<A-i>", "<cmd>lua require('nvterm.terminal').toggle('float')<cr>", mode = { "n", "t" }, desc = "Toggle terminal" },
},
config = true,
}

View File

@ -4,7 +4,7 @@ return {
priority = 1000,
opts = {
style = "dark",
transparent = false,
transparent = true,
term_colors = true,
highlights = {
["StatusLine"] = {fg = "$bg3", bg = "Normal"},

View File

@ -1,7 +0,0 @@
return {
"nvim-pack/nvim-spectre",
keys = {
{ "<leader>sr", function() require("spectre").open() end, desc = "Replace in files (Spectre)" },
},
config = true,
}

View File

@ -39,7 +39,5 @@ return {
width = 35,
},
},
config = function(_, opts)
require("nvim-tree").setup(opts)
end,
config = true,
}

View File

@ -1,18 +0,0 @@
return {
"folke/trouble.nvim",
event = "VeryLazy",
keys = {
{ "<leader>x", function() require("trouble").toggle() end, desc = "Show errors" },
},
dependencies = {
"nvim-tree/nvim-web-devicons",
},
opts = {
position = "right",
padding = false,
use_diagnostic_signs = true,
auto_open = true,
auto_close = true,
},
config = true,
}