configs/neovim: add ale, re-format while here

This commit is contained in:
Aaron Bieber 2023-07-26 11:47:52 -06:00
parent 8b8978706b
commit 8f2d060486
No known key found for this signature in database
2 changed files with 60 additions and 82 deletions

View File

@ -25,8 +25,8 @@ require("compe").setup {
nvim_lua = true,
vsnip = true,
ultisnips = true,
luasnip = true,
},
luasnip = true
}
}
local telescope = require('telescope')
@ -41,20 +41,16 @@ require("nvim-tree").setup({
file = false,
folder = false,
folder_arrow = false,
git = true,
},
},
},
git = true
}
}
}
})
require('obsidian').setup({
dir = "~/Brain",
daily_notes = {
folder = "Daily",
},
completion = {
nvim_cmp = false,
}
daily_notes = {folder = "Daily"},
completion = {nvim_cmp = false}
})
require'nvim-treesitter.configs'.setup({})
@ -69,15 +65,7 @@ local lspc = require('lspconfig')
lspc.elmls.setup {};
lspc.gopls.setup {};
lspc.hls.setup {};
lspc.lua_ls.setup {
settings = {
Lua = {
diagnostics = {
globals = { 'vim' },
},
},
},
};
lspc.lua_ls.setup {settings = {Lua = {diagnostics = {globals = {'vim'}}}}};
lspc.nil_ls.setup {};
lspc.perlpls.setup {};
lspc.solargraph.setup {};
@ -129,19 +117,14 @@ vim.api.nvim_create_autocmd('LspAttach', {
-- vim.keymap.set('n', '<space>f', function()
-- vim.lsp.buf.format { async = true }
-- end, opts)
end,
end
})
vim.g.tagbar_type_elm = {
ctagstype = 'elm',
kinds = {
'f:function:0:0',
'm:modules:0:0',
'i:imports:1:0',
't:types:1:0',
'a:type aliases:0:0',
'c:type constructors:0:0',
'p:ports:0:0',
'f:function:0:0', 'm:modules:0:0', 'i:imports:1:0', 't:types:1:0',
'a:type aliases:0:0', 'c:type constructors:0:0', 'p:ports:0:0',
's:functions:0:0'
}
}
@ -149,13 +132,7 @@ vim.g.tagbar_type_elm = {
vim.g.tagbar_type_typescript = {
ctagstype = 'typescript',
kinds = {
'c:classes',
'n:modules',
'f:functions',
'v:variables',
'v:varlambdas',
'm:members',
'i:interfaces',
'e:enums'
'c:classes', 'n:modules', 'f:functions', 'v:variables', 'v:varlambdas',
'm:members', 'i:interfaces', 'e:enums'
}
}

View File

@ -108,6 +108,7 @@ with pkgs; let
};
baseVimPackages = with vimPlugins; [
ale
elm-vim
fugitive
fzf-vim