aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2021-10-04 17:20:46 -0600
committerCody Hiar <cody@hiar.ca>2021-10-04 17:20:46 -0600
commit7801c2e2e4dbbe6bef7eff94727764d68aae604a (patch)
tree7cb8106f07db49d60c33623c9b1e3dd2c72ff5e3 /init.lua
parent4f2516c920b06f425acd3b2fff994d852e7b54ec (diff)
get ale/shellcheck running
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)