@@ -298,7 +298,7 @@ require('lazy').setup({
298298 -- Then, because we use the `opts` key (recommended), the configuration runs
299299 -- after the plugin has been loaded as `require(MODULE).setup(opts)`.
300300
301- { -- Useful plugin to show you pending keybinds.
301+ { -- Useful plugin to show you pending keybinds.
302302 ' folke/which-key.nvim' ,
303303 event = ' VimEnter' , -- Sets the loading event to 'VimEnter'
304304 opts = {
@@ -379,7 +379,7 @@ require('lazy').setup({
379379 { ' nvim-telescope/telescope-ui-select.nvim' },
380380
381381 -- Useful for getting pretty icons, but requires a Nerd Font.
382- { ' nvim-tree/nvim-web-devicons' , enabled = vim .g .have_nerd_font },
382+ { ' nvim-tree/nvim-web-devicons' , enabled = vim .g .have_nerd_font },
383383 },
384384 config = function ()
385385 -- Telescope is a fuzzy finder that comes with a lot of different things that
@@ -487,7 +487,7 @@ require('lazy').setup({
487487 ' WhoIsSethDaniel/mason-tool-installer.nvim' ,
488488
489489 -- Useful status updates for LSP.
490- { ' j-hui/fidget.nvim' , opts = {} },
490+ { ' j-hui/fidget.nvim' , opts = {} },
491491
492492 -- Allows extra capabilities provided by blink.cmp
493493 ' saghen/blink.cmp' ,
@@ -683,6 +683,22 @@ require('lazy').setup({
683683 -- But for many setups, the LSP (`ts_ls`) will work just fine
684684 -- ts_ls = {},
685685 --
686+ pylsp = {
687+ settings = {
688+ pylsp = {
689+ plugins = {
690+ pyflakes = { enabled = false },
691+ pycodestyle = { enabled = false },
692+ autopep8 = { enabled = false },
693+ yapf = { enabled = false },
694+ mccabe = { enabled = false },
695+ pylsp_mypy = { enabled = false },
696+ pylsp_black = { enabled = false },
697+ pylsp_isort = { enabled = false },
698+ },
699+ },
700+ },
701+ },
686702
687703 lua_ls = {
688704 -- cmd = { ... },
@@ -736,47 +752,6 @@ require('lazy').setup({
736752 end ,
737753 },
738754
739- { -- Autoformat
740- ' stevearc/conform.nvim' ,
741- event = { ' BufWritePre' },
742- cmd = { ' ConformInfo' },
743- keys = {
744- {
745- ' <leader>f' ,
746- function ()
747- require (' conform' ).format { async = true , lsp_format = ' fallback' }
748- end ,
749- mode = ' ' ,
750- desc = ' [F]ormat buffer' ,
751- },
752- },
753- opts = {
754- notify_on_error = false ,
755- format_on_save = function (bufnr )
756- -- Disable "format_on_save lsp_fallback" for languages that don't
757- -- have a well standardized coding style. You can add additional
758- -- languages here or re-enable it for the disabled ones.
759- local disable_filetypes = { c = true , cpp = true }
760- if disable_filetypes [vim .bo [bufnr ].filetype ] then
761- return nil
762- else
763- return {
764- timeout_ms = 500 ,
765- lsp_format = ' fallback' ,
766- }
767- end
768- end ,
769- formatters_by_ft = {
770- lua = { ' stylua' },
771- -- Conform can also run multiple formatters sequentially
772- -- python = { "isort", "black" },
773- --
774- -- You can use 'stop_after_first' to run the first available formatter from the list
775- -- javascript = { "prettierd", "prettier", stop_after_first = true },
776- },
777- },
778- },
779-
780755 { -- Autocompletion
781756 ' saghen/blink.cmp' ,
782757 event = ' VimEnter' ,
@@ -944,7 +919,7 @@ require('lazy').setup({
944919 main = ' nvim-treesitter.configs' , -- Sets main module to use for opts
945920 -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
946921 opts = {
947- ensure_installed = { ' bash' , ' c' , ' diff' , ' html' , ' lua' , ' luadoc' , ' markdown' , ' markdown_inline' , ' query' , ' vim' , ' vimdoc' },
922+ ensure_installed = { ' python ' , ' bash' , ' c' , ' diff' , ' html' , ' lua' , ' luadoc' , ' markdown' , ' markdown_inline' , ' query' , ' vim' , ' vimdoc' },
948923 -- Autoinstall languages that are not installed
949924 auto_install = true ,
950925 highlight = {
@@ -973,18 +948,18 @@ require('lazy').setup({
973948 -- Here are some example plugins that I've included in the Kickstart repository.
974949 -- Uncomment any of the lines below to enable them (you will need to restart nvim).
975950 --
976- -- require 'kickstart.plugins.debug',
951+ require ' kickstart.plugins.debug' ,
977952 -- require 'kickstart.plugins.indent_line',
978953 -- require 'kickstart.plugins.lint',
979954 -- require 'kickstart.plugins.autopairs',
980- -- require 'kickstart.plugins.neo-tree',
955+ require ' kickstart.plugins.neo-tree' ,
981956 -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
982957
983958 -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
984959 -- This is the easiest way to modularize your config.
985960 --
986961 -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
987- -- { import = 'custom.plugins' },
962+ { import = ' custom.plugins' },
988963 --
989964 -- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
990965 -- Or use telescope!
0 commit comments