mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2025-03-04 10:11:39 +00:00
customize + additional plugin
This commit is contained in:
parent
b913bdacfd
commit
f2ac9f069d
3 changed files with 70 additions and 1 deletions
|
@ -64,4 +64,6 @@ lspconfig.lua_ls.setup {
|
|||
},
|
||||
}
|
||||
|
||||
require'lspconfig'.rust_analyzer.setup{}
|
||||
|
||||
return M
|
||||
|
|
|
@ -22,7 +22,7 @@ local options = {
|
|||
},
|
||||
view = {
|
||||
adaptive_size = true,
|
||||
side = "left",
|
||||
side = "right",
|
||||
width = 25,
|
||||
hide_root_folder = true,
|
||||
},
|
||||
|
|
|
@ -88,6 +88,48 @@ local plugins = {
|
|||
end,
|
||||
},
|
||||
|
||||
["EthanJWright/vs-tasks.nvim"] = {
|
||||
requires = {
|
||||
'nvim-lua/popup.nvim',
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-telescope/telescope.nvim'
|
||||
},
|
||||
setup = function()
|
||||
require("vstask").setup({
|
||||
cache_json_conf = true, -- don't read the json conf every time a task is ran
|
||||
cache_strategy = "last", -- can be "most" or "last" (most used / last used)
|
||||
use_harpoon = true, -- use harpoon to auto cache terminals
|
||||
telescope_keys = { -- change the telescope bindings used to launch tasks
|
||||
vertical = '<C-v>',
|
||||
split = '<C-p>',
|
||||
tab = '<C-t>',
|
||||
current = '<CR>',
|
||||
},
|
||||
autodetect = { -- auto load scripts
|
||||
npm = "on"
|
||||
},
|
||||
terminal = 'nvterm',
|
||||
term_opts = {
|
||||
vertical = {
|
||||
direction = "vertical",
|
||||
size = "80"
|
||||
},
|
||||
horizontal = {
|
||||
direction = "horizontal",
|
||||
size = "10"
|
||||
},
|
||||
current = {
|
||||
direction = "float",
|
||||
},
|
||||
tab = {
|
||||
direction = 'tab',
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
end,
|
||||
},
|
||||
|
||||
-- git stuff
|
||||
["lewis6991/gitsigns.nvim"] = {
|
||||
ft = "gitcommit",
|
||||
|
@ -117,6 +159,31 @@ local plugins = {
|
|||
end,
|
||||
},
|
||||
|
||||
["simrat39/rust-tools.nvim"] = {
|
||||
after = "nvim-lspconfig",
|
||||
config = function()
|
||||
require('rust-tools').setup({})
|
||||
end,
|
||||
},
|
||||
|
||||
["jose-elias-alvarez/typescript.nvim"] = {
|
||||
after = "nvim-lspconfig",
|
||||
config = function()
|
||||
require("typescript").setup({
|
||||
disable_commands = false, -- prevent the plugin from creating Vim commands
|
||||
debug = false, -- enable debug logging for commands
|
||||
go_to_source_definition = {
|
||||
fallback = true, -- fall back to standard LSP definition on failure
|
||||
},
|
||||
server = { -- pass options to lspconfig's setup method
|
||||
on_attach = function()
|
||||
print("attached to TypeScript project")
|
||||
end,
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
-- load luasnips + cmp related in insert mode only
|
||||
|
||||
["rafamadriz/friendly-snippets"] = {
|
||||
|
|
Loading…
Add table
Reference in a new issue