nvim: i don't even know man
This commit is contained in:
@ -3,9 +3,16 @@ return {
|
||||
config = function()
|
||||
require("dap-go").setup()
|
||||
require("dap-python").setup()
|
||||
table.insert(require("dap").configurations.python, {
|
||||
type = "python",
|
||||
request = "launch",
|
||||
name = "My custom launch configuration",
|
||||
program = "${file}",
|
||||
-- ... more options, see https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings
|
||||
})
|
||||
end,
|
||||
key = {
|
||||
"<leader>d"
|
||||
"<leader>d",
|
||||
},
|
||||
dependencies = {
|
||||
"leoluz/nvim-dap-go",
|
||||
|
||||
@ -23,6 +23,15 @@ return {
|
||||
toml = {
|
||||
require("formatter.filetypes.toml").taplo,
|
||||
},
|
||||
svelte = {
|
||||
require("formatter.filetypes.svelte").prettier,
|
||||
},
|
||||
vue = {
|
||||
require("formatter.filetypes.vue").prettier,
|
||||
},
|
||||
javascript = {
|
||||
require("formatter.filetypes.javascript").prettier,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
return {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
config = function ()
|
||||
require("indent_blankline").setup()
|
||||
require("ibl").setup()
|
||||
end
|
||||
}
|
||||
|
||||
@ -3,9 +3,14 @@ return {
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
local lsp = require("lspconfig")
|
||||
-- lsp.pyright.setup({})
|
||||
lsp.pylyzer.setup({})
|
||||
lsp.pyright.setup({})
|
||||
-- lsp.pylyzer.setup({})
|
||||
lsp.gopls.setup({})
|
||||
-- lsp.volar.setup({})
|
||||
-- lsp.tsserver.setup({})
|
||||
lsp.volar.setup({
|
||||
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue", "json" },
|
||||
})
|
||||
lsp.rust_analyzer.setup({})
|
||||
lsp.clangd.setup({})
|
||||
lsp.lua_ls.setup({
|
||||
|
||||
9
.config/nvim/lua/plugins/neo-tree.lua
Normal file
9
.config/nvim/lua/plugins/neo-tree.lua
Normal file
@ -0,0 +1,9 @@
|
||||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v3.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
}
|
||||
@ -1,22 +0,0 @@
|
||||
return {
|
||||
"kyazdani42/nvim-tree.lua",
|
||||
config = function()
|
||||
-- nvim tree
|
||||
require("nvim-tree").setup({
|
||||
update_cwd = true,
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
},
|
||||
})
|
||||
|
||||
-- close tab/vim when nvim-tree is the last window in the tab
|
||||
vim.api.nvim_create_autocmd("BufEnter", {
|
||||
pattern = "*",
|
||||
command = "if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif",
|
||||
})
|
||||
end,
|
||||
dependencies = {
|
||||
"kyazdani42/nvim-web-devicons",
|
||||
},
|
||||
cmd = { "NvimTreeOpen", "NvimTreeToggle" },
|
||||
}
|
||||
Reference in New Issue
Block a user