add new theme and lsp settings

This commit is contained in:
Przemyslaw Chudzia 2024-02-22 17:17:27 +01:00
parent be0f4837b7
commit a4d016c30f
1 changed files with 20 additions and 9 deletions

View File

@ -192,15 +192,18 @@ require('lazy').setup({
}, },
}, },
{ {
-- Theme inspired by Atom 'loctvl842/monokai-pro.nvim',
'navarasu/onedark.nvim',
priority = 1000, priority = 1000,
config = function() config = function()
vim.cmd.colorscheme 'onedark' require('monokai-pro').setup({
transparent_background = true,
filter = "spectrum",
devicons = true,
})
vim.cmd.colorscheme 'monokai-pro'
end, end,
}, },
{ {
-- Set lualine as statusline -- Set lualine as statusline
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
@ -208,7 +211,7 @@ require('lazy').setup({
opts = { opts = {
options = { options = {
icons_enabled = false, icons_enabled = false,
theme = 'onedark', theme = 'monokai-pro',
component_separators = '|', component_separators = '|',
section_separators = '', section_separators = '',
}, },
@ -269,7 +272,7 @@ require('lazy').setup({
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
-- --
-- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins -- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins
-- { import = 'custom.plugins' }, { import = 'custom.plugins' },
}, {}) }, {})
-- [[ Setting options ]] -- [[ Setting options ]]
@ -586,11 +589,18 @@ require('mason-lspconfig').setup()
local servers = { local servers = {
-- clangd = {}, -- clangd = {},
-- gopls = {}, -- gopls = {},
prismals = { filetypes = { 'prisma' } },
-- pyright = {}, -- pyright = {},
-- rust_analyzer = {}, -- rust_analyzer = {},
-- tsserver = {},
-- html = { filetypes = { 'html', 'twig', 'hbs'} }, -- html = { filetypes = { 'html', 'twig', 'hbs'} },
tsserver = {
init_options = {
preferences = {
importModuleSpecifier = 'relative',
importModuleSpecifierEnding = 'minimal'
}
}
},
lua_ls = { lua_ls = {
Lua = { Lua = {
workspace = { checkThirdParty = false }, workspace = { checkThirdParty = false },
@ -621,6 +631,7 @@ mason_lspconfig.setup_handlers {
capabilities = capabilities, capabilities = capabilities,
on_attach = on_attach, on_attach = on_attach,
settings = servers[server_name], settings = servers[server_name],
init_options = (servers[server_name] or {}).init_options,
filetypes = (servers[server_name] or {}).filetypes, filetypes = (servers[server_name] or {}).filetypes,
} }
end, end,