customize + additional plugin

This commit is contained in:
Erica Marigold 2023-05-21 17:03:42 +05:30
parent b913bdacfd
commit f2ac9f069d
No known key found for this signature in database
GPG key ID: DA2C44572707FB1C
3 changed files with 70 additions and 1 deletions

View file

@ -64,4 +64,6 @@ lspconfig.lua_ls.setup {
}, },
} }
require'lspconfig'.rust_analyzer.setup{}
return M return M

View file

@ -22,7 +22,7 @@ local options = {
}, },
view = { view = {
adaptive_size = true, adaptive_size = true,
side = "left", side = "right",
width = 25, width = 25,
hide_root_folder = true, hide_root_folder = true,
}, },

View file

@ -88,6 +88,48 @@ local plugins = {
end, 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 -- git stuff
["lewis6991/gitsigns.nvim"] = { ["lewis6991/gitsigns.nvim"] = {
ft = "gitcommit", ft = "gitcommit",
@ -117,6 +159,31 @@ local plugins = {
end, 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 -- load luasnips + cmp related in insert mode only
["rafamadriz/friendly-snippets"] = { ["rafamadriz/friendly-snippets"] = {