diff --git a/modules/editor/neovim/lua/packer/lsp.lua b/modules/editor/neovim/lua/packer/lsp.lua index d0f31aa..991f2bd 100644 --- a/modules/editor/neovim/lua/packer/lsp.lua +++ b/modules/editor/neovim/lua/packer/lsp.lua @@ -14,9 +14,8 @@ M.packer = function(use) return vim.fn.executable(program) == 1 end - local capabilities = require("cmp_nvim_lsp").update_capabilities( - vim.lsp.protocol.make_client_capabilities() - ) + local capabilities = + require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()) if on_path("lua-language-server") then require("lspconfig").sumneko_lua.setup({ capabilities = capabilities, @@ -93,6 +92,11 @@ M.packer = function(use) return on_path("black") end, }), + require("null-ls").builtins.diagnostics.flake8.with({ + condition = function() + return on_path("flake8") + end, + }), require("null-ls").builtins.formatting.fish_indent.with({ condition = function() return on_path("fish_indent") diff --git a/modules/editor/neovim/lua/packer/visuals.lua b/modules/editor/neovim/lua/packer/visuals.lua index df9a52d..5a9ed38 100644 --- a/modules/editor/neovim/lua/packer/visuals.lua +++ b/modules/editor/neovim/lua/packer/visuals.lua @@ -71,6 +71,11 @@ M.packer = function(use) require("nvim-tree").setup({ disable_netrw = true, hijack_netrw = true, + update_focused_file = { + enable = true, + update_cwd = true, + ignore_list = {}, + }, diagnostics = { enable = true, icons = { diff --git a/modules/programming/python.nix b/modules/programming/python.nix index 45341b3..d2bde89 100644 --- a/modules/programming/python.nix +++ b/modules/programming/python.nix @@ -6,6 +6,7 @@ # python310 # Standard Python interpreter nodePackages.pyright # Python language server black # Python formatter + python310Packages.flake8 # Python linter ]; programs.fish.shellAbbrs = { py = "python3"; };