diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -25,6 +25,17 @@ if fn.empty(fn.glob(install_path)) > 0 then end +function _G.print_table(mytable) + for k,v in pairs(mytable) do + if (type(v) == "table") then + print(k) + print_table(v) + else + print(k, v) + end + end +end + -- https://old.reddit.com/r/neovim/comments/lrz18i/how_to_change_colorscheme_in_lua_without_any/ vim.g.colors_name = "nord" @@ -251,7 +262,7 @@ return require('packer').startup(function() -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches -- local servers = { 'pyls', 'rust_analyzer', 'tsserver' } - local servers = { 'pyright' } + local servers = { 'pyright', 'bashls' } for _, lsp in ipairs(servers) do nvim_lsp[lsp].setup { on_attach = on_attach, @@ -369,4 +380,12 @@ return require('packer').startup(function() use 'ervandew/supertab' -- The treesitter for nix doesn't do indents use 'LnL7/vim-nix' + use { + 'dense-analysis/ale', + config = function() + vim.g.ale_linters = { + shell = { "shellcheck", }, + } + end + } end) |