Updated config
This commit is contained in:
@ -1,16 +1,5 @@
|
||||
local on = vim.api.nvim_create_autocmd
|
||||
|
||||
on("VimEnter", {
|
||||
callback = function()
|
||||
local files = require("nvim-tree.api")
|
||||
local width = vim.go.columns
|
||||
|
||||
if width > 120 then
|
||||
files.tree.toggle({ focus = false })
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
on({ "TermOpen", "TermEnter" }, {
|
||||
callback = function()
|
||||
vim.opt_local.signcolumn = "no"
|
||||
|
@ -13,7 +13,7 @@ opt.autowrite = false
|
||||
opt.clipboard = "unnamedplus"
|
||||
opt.conceallevel = 0
|
||||
opt.cursorline = true
|
||||
opt.cursorlineopt = "both"
|
||||
opt.cursorlineopt = "number"
|
||||
opt.expandtab = false
|
||||
opt.grepformat = "%f:%l:%c:%m"
|
||||
opt.grepprg = "rg --grep"
|
||||
|
@ -11,8 +11,6 @@ return {
|
||||
position = "right",
|
||||
padding = false,
|
||||
use_diagnostic_signs = true,
|
||||
auto_open = true,
|
||||
auto_close = true,
|
||||
},
|
||||
config = true,
|
||||
}
|
@ -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" },
|
||||
|
@ -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)
|
||||
|
8
.config/nvim/lua/plugins/notify.lua
Normal file
8
.config/nvim/lua/plugins/notify.lua
Normal file
@ -0,0 +1,8 @@
|
||||
return {
|
||||
"rcarriga/nvim-notify",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
background_colour = "#000000",
|
||||
},
|
||||
config = true,
|
||||
}
|
@ -4,7 +4,7 @@ return {
|
||||
priority = 1000,
|
||||
opts = {
|
||||
style = "dark",
|
||||
transparent = false,
|
||||
transparent = true,
|
||||
term_colors = true,
|
||||
highlights = {
|
||||
["StatusLine"] = {fg = "$bg3", bg = "Normal"},
|
@ -39,7 +39,5 @@ return {
|
||||
width = 35,
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("nvim-tree").setup(opts)
|
||||
end,
|
||||
config = true,
|
||||
}
|
||||
|
Reference in New Issue
Block a user