aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua21
1 files changed, 20 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 56f5a39..7c1d350 100644
--- a/init.lua
+++ b/init.lua
@@ -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)