dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit a85f95fd8d41fde8ce7449bcf293bac0bc4e4733
parent ef5f220454541ab896aa3c6865b1e67cd732f2c7
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Thu,  8 Dec 2022 19:36:59 +0100

nvim: plugins

Diffstat:
Mnvim/init.lua | 15+++++++++++++++
Mnvim/lua/plugins.lua | 1+
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/nvim/init.lua b/nvim/init.lua @@ -25,8 +25,23 @@ end require'lspconfig'.rust_analyzer.setup({ on_attach = custom_lsp_attach }) + +vim.keymap.set('n', '<space>e', vim.diagnostic.open_float, {noremap = true}) +vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, {noremap = true}) +vim.keymap.set('n', ']d', vim.diagnostic.goto_next, {noremap = true}) +vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, {noremap = true}) require'lspconfig'.pyright.setup{} +require'lint'.linters_by_ft = { + -- python = {'flake8',}, + sh = {'shellcheck',} +} +vim.api.nvim_create_autocmd({ "BufWritePost" }, { + callback = function() + require("lint").try_lint() + end, +}) + require'nvim-treesitter.configs'.setup { -- Automatically install missing parsers when entering buffer auto_install = true, diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua @@ -22,6 +22,7 @@ return require('packer').startup(function(use) ts_update() end, } + use 'mfussenegger/nvim-lint' -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins