Add lazy and plugins dir
This commit is contained in:
parent
1dacc4c2d3
commit
a467ba4a69
25 changed files with 1393 additions and 0 deletions
55
lua/rakshit/plugins/lsp/mason.lua
Normal file
55
lua/rakshit/plugins/lsp/mason.lua
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
return {
|
||||
'williamboman/mason.nvim',
|
||||
dependencies = {
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
||||
},
|
||||
config = function()
|
||||
-- import mason
|
||||
local mason = require('mason')
|
||||
|
||||
-- import mason-lspconfig
|
||||
local mason_lspconfig = require('mason-lspconfig')
|
||||
|
||||
local mason_tool_installer = require('mason-tool-installer')
|
||||
|
||||
-- enable mason and configure icons
|
||||
mason.setup({
|
||||
ui = {
|
||||
icons = {
|
||||
package_installed = '✓',
|
||||
package_pending = '➜',
|
||||
package_uninstalled = '✗',
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
mason_lspconfig.setup({
|
||||
-- list of servers for mason to install
|
||||
ensure_installed = {
|
||||
'html',
|
||||
'cssls',
|
||||
'tailwindcss',
|
||||
'svelte',
|
||||
'lua_ls',
|
||||
'graphql',
|
||||
'emmet_ls',
|
||||
'prismals',
|
||||
'pyright',
|
||||
'gopls',
|
||||
},
|
||||
})
|
||||
|
||||
mason_tool_installer.setup({
|
||||
ensure_installed = {
|
||||
-- TODO: Make sure to install golang formatter as well
|
||||
'prettier',
|
||||
'stylua',
|
||||
'isort',
|
||||
'black',
|
||||
'pylint',
|
||||
'eslint_d',
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue