diff --git a/fish/config.fish b/fish/config.fish index 6be8f09..6fcc9d9 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -26,8 +26,9 @@ alias gtc="go test -gcflags=all=-l -cover ./..." alias swg="swag init -o docs -g " alias sws="swagger serve -F=swagger" + function gtr - go test -gcflags=all=-l -v -run="$1" + go test -gcflags=all=-l -v -run=$argv end diff --git a/nvim/lua/plugins/nvim-lspconfig.lua b/nvim/lua/plugins/nvim-lspconfig.lua index 6b0701c..96d0ce2 100644 --- a/nvim/lua/plugins/nvim-lspconfig.lua +++ b/nvim/lua/plugins/nvim-lspconfig.lua @@ -134,6 +134,21 @@ return { init_options = { usePlaceholders = true, completeUnimported = true }, }, }, + pylsp = { + setup = { + cmd = { "pylyzer", "--server" }, + filetypes = { "python" }, + settings = { + python = { + checkOnType = false, + diagnostics = true, + inlayHints = true, + smartCompletion = true + } + }, + single_file_support = true, + } + } }, setup = {}, },