@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
91
91
vim .g .maplocalleader = ' '
92
92
93
93
-- Set to true if you have a Nerd Font installed and selected in the terminal
94
- vim .g .have_nerd_font = false
94
+ vim .g .have_nerd_font = true
95
95
96
96
-- [[ Setting options ]]
97
97
-- See `:help vim.o`
@@ -483,7 +483,8 @@ require('lazy').setup({
483
483
-- Mason must be loaded before its dependents so we need to set it up here.
484
484
-- NOTE: `opts = {}` is the same as calling `require('mason').setup({})`
485
485
{ ' mason-org/mason.nvim' , opts = {} },
486
- ' mason-org/mason-lspconfig.nvim' ,
486
+ -- 'mason-org/mason-lspconfig.nvim',
487
+ { ' mason-org/mason-lspconfig.nvim' },
487
488
' WhoIsSethDaniel/mason-tool-installer.nvim' ,
488
489
489
490
-- Useful status updates for LSP.
@@ -674,14 +675,33 @@ require('lazy').setup({
674
675
-- clangd = {},
675
676
-- gopls = {},
676
677
-- pyright = {},
678
+ pylsp = {
679
+ settings = {
680
+ pylsp = {
681
+ plugins = {
682
+ pyflakes = { enabled = false },
683
+ pycodestyle = { enabled = false },
684
+ autopep8 = { enabled = false },
685
+ yapf = { enabled = false },
686
+ mccabe = { enabled = false },
687
+ pylsp_mypy = { enabled = false },
688
+ pylsp_black = { enabled = false },
689
+ pylsp_isort = { enabled = false },
690
+ },
691
+ },
692
+ },
693
+ },
694
+
695
+ ruff = {},
696
+
677
697
-- rust_analyzer = {},
678
698
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
679
699
--
680
700
-- Some languages (like typescript) have entire language plugins that can be useful:
681
701
-- https://github.com/pmizio/typescript-tools.nvim
682
702
--
683
703
-- But for many setups, the LSP (`ts_ls`) will work just fine
684
- -- ts_ls = {},
704
+ ts_ls = {},
685
705
--
686
706
687
707
lua_ls = {
@@ -693,13 +713,31 @@ require('lazy').setup({
693
713
completion = {
694
714
callSnippet = ' Replace' ,
695
715
},
696
- -- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
697
- -- diagnostics = { disable = { 'missing-fields' } },
716
+ runtime = { version = ' LuaJIT' },
717
+ workspace = {
718
+ checkThirdParty = false ,
719
+ library = vim .api .nvim_get_runtime_file (' ' , true ),
720
+ },
721
+ diagnostics = {
722
+ globals = { ' vim' },
723
+ disable = { ' missing-fields' },
724
+ },
725
+ -- format = {
726
+ -- enable = false,
727
+ -- },
698
728
},
699
729
},
700
730
},
701
731
}
702
732
733
+ -- The following loop will configure each server with the capabilities we defined above.
734
+ -- This will ensure that all servers have the same base configuration, but also
735
+ -- allow for server-specific overrides.
736
+ for server_name , server_config in pairs (servers ) do
737
+ server_config .capabilities = vim .tbl_deep_extend (' force' , {}, capabilities , server_config .capabilities or {})
738
+ require (' lspconfig' )[server_name ].setup (server_config )
739
+ end
740
+
703
741
-- Ensure the servers and tools above are installed
704
742
--
705
743
-- To check the current status of installed tools and/or manually install
@@ -718,21 +756,6 @@ require('lazy').setup({
718
756
' stylua' , -- Used to format Lua code
719
757
})
720
758
require (' mason-tool-installer' ).setup { ensure_installed = ensure_installed }
721
-
722
- require (' mason-lspconfig' ).setup {
723
- ensure_installed = {}, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer)
724
- automatic_installation = false ,
725
- handlers = {
726
- function (server_name )
727
- local server = servers [server_name ] or {}
728
- -- This handles overriding only values explicitly passed
729
- -- by the server configuration above. Useful when disabling
730
- -- certain features of an LSP (for example, turning off formatting for ts_ls)
731
- server .capabilities = vim .tbl_deep_extend (' force' , {}, capabilities , server .capabilities or {})
732
- require (' lspconfig' )[server_name ].setup (server )
733
- end ,
734
- },
735
- }
736
759
end ,
737
760
},
738
761
@@ -881,20 +904,21 @@ require('lazy').setup({
881
904
-- change the command in the config to whatever the name of that colorscheme is.
882
905
--
883
906
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
884
- ' folke/tokyonight .nvim' ,
907
+ ' Mofiqul/dracula .nvim' ,
885
908
priority = 1000 , -- Make sure to load this before all the other start plugins.
886
909
config = function ()
887
910
--- @diagnostic disable-next-line : missing-fields
888
- require (' tokyonight' ).setup {
911
+ require (' dracula' ).setup {
912
+ transparent_bg = true ,
889
913
styles = {
890
- comments = { italic = false }, -- Disable italics in comments
914
+ comments = { italic = true }, -- Disable italics in comments
891
915
},
892
916
}
893
917
894
918
-- Load the colorscheme here.
895
919
-- Like many other themes, this one has different styles, and you could load
896
920
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
897
- vim .cmd .colorscheme ' tokyonight-night '
921
+ vim .cmd .colorscheme ' dracula '
898
922
end ,
899
923
},
900
924
0 commit comments