[nvim] update configuration
This commit is contained in:
parent
bccdd30882
commit
bcc237fc4d
|
@ -6,7 +6,6 @@ lua << EOF
|
|||
diff_binaries = false, -- Show diffs for binaries
|
||||
file_panel = {
|
||||
width = 35,
|
||||
use_icons = true -- Requires nvim-web-devicons
|
||||
},
|
||||
key_bindings = {
|
||||
disable_defaults = false, -- Disable the default key bindings
|
||||
|
|
|
@ -91,6 +91,21 @@ cmp.setup {
|
|||
local saga = require 'lspsaga'
|
||||
saga.init_lsp_saga()
|
||||
|
||||
local null_ls = require("null-ls")
|
||||
|
||||
local sources = {
|
||||
null_ls.builtins.diagnostics.flake8,
|
||||
null_ls.builtins.formatting.isort.with({
|
||||
args = { "--stdout", "--profile", "black", "-e", "-" }
|
||||
}),
|
||||
}
|
||||
|
||||
null_ls.config({
|
||||
sources = sources,
|
||||
diagnostics_format = "[#{s}] #{c}: #{m}"
|
||||
})
|
||||
nvim_lsp["null-ls"].setup( { } )
|
||||
|
||||
local lsp_installer = require("nvim-lsp-installer")
|
||||
|
||||
-- Register a handler that will be called for all installed servers.
|
||||
|
@ -140,3 +155,6 @@ nnoremap <silent><leader>cc <cmd>Lspsaga show_cursor_diagnostics<CR>
|
|||
" jump between diagnostics
|
||||
nnoremap <silent> [e <cmd>Lspsaga diagnostic_jump_prev<CR>
|
||||
nnoremap <silent> ]e <cmd>Lspsaga diagnostic_jump_next<CR>
|
||||
|
||||
" format
|
||||
nnoremap <silent> <leader>f <cmd>lua vim.lsp.buf.formatting()<CR>
|
||||
|
|
|
@ -72,9 +72,6 @@
|
|||
[submodule ".aegisub/automation/0x539"]
|
||||
path = .aegisub/automation/0x539
|
||||
url = https://github.com/The0x539/Aegisub-Scripts.git
|
||||
[submodule ".local/share/nvim/site/pack/ale/start/ale"]
|
||||
path = .local/share/nvim/site/pack/ale/start/ale
|
||||
url = https://github.com/dense-analysis/ale.git
|
||||
[submodule ".local/share/nvim/site/pack/vim-grammarous/start/vim-grammarous"]
|
||||
path = .local/share/nvim/site/pack/vim-grammarous/start/vim-grammarous
|
||||
url = https://github.com/rhysd/vim-grammarous.git
|
||||
|
@ -141,3 +138,6 @@
|
|||
[submodule ".local/share/nvim/site/pack/space-vim-theme/start/gitsigns.nvim"]
|
||||
path = .local/share/nvim/site/pack/git/start/gitsigns.nvim
|
||||
url = https://github.com/lewis6991/gitsigns.nvim.git
|
||||
[submodule ".local/share/nvim/site/pack/lspconfig/start/null-ls.nvim"]
|
||||
path = .local/share/nvim/site/pack/lspconfig/start/null-ls.nvim
|
||||
url = https://github.com/jose-elias-alvarez/null-ls.nvim.git
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit ea643b97ab08e571a543f4bd89cd3170f3f288e2
|
|
@ -1 +1 @@
|
|||
Subproject commit 620445b87a0d1640fac6991f9c3338af8dec1884
|
||||
Subproject commit a6e1c127fa7f19ec4e3edbffab1aacb2852b6db3
|
|
@ -1 +1 @@
|
|||
Subproject commit e0ffb1cb7c5ea9e693e5ee5ee3ce1e5f78916ed6
|
||||
Subproject commit f92d27b22bd5bfa47903ac91de5077263ce816ea
|
|
@ -1 +1 @@
|
|||
Subproject commit 06000011b9a8b1f2f843489c32afdb487e163c14
|
||||
Subproject commit f5b7e32bf126cf3480d2a4fe1c0a2cd13d7f755a
|
|
@ -1 +1 @@
|
|||
Subproject commit 15c3cb9e6311dc1a875eacb9fc8df69ca48d7402
|
||||
Subproject commit 1c31adb35fcebe921f65e5c6ff6d5481fa5fa5ac
|
|
@ -1 +1 @@
|
|||
Subproject commit 5736db90f9b56a7163930de3b7ad743f77785a04
|
||||
Subproject commit c7b2b2e14b597c077804ae201f1ec9a7dac76ad0
|
|
@ -0,0 +1 @@
|
|||
Subproject commit b07ce47f02c7b12ad65bfb4da215c6380228a959
|
|
@ -1 +1 @@
|
|||
Subproject commit 1c7f73aa4ad2ca1d25ea57ba5ab4e43df85d3479
|
||||
Subproject commit 2e4270d02843d15510b3549354e238788ca07ca5
|
|
@ -1 +1 @@
|
|||
Subproject commit 4f8cafab7f518f033036c611e6954dc22f7dc336
|
||||
Subproject commit 52183c68baf9019c8241b1abf33ba0b6594ab3c8
|
|
@ -1 +1 @@
|
|||
Subproject commit 6c47af495cb30c12e58c87f829c5daa65958cc67
|
||||
Subproject commit b53f89c16bcc8052aa56d3a903fcad3aaa774041
|
|
@ -1 +1 @@
|
|||
Subproject commit 190bcc8d56c0b4c5047492d17b1615c6e89139af
|
||||
Subproject commit fbbcfa7b6c0841e19f39836a7c5561fd9cc6900f
|
|
@ -1 +1 @@
|
|||
Subproject commit 31cfd4221b2729a7d4e60a6f1bb506b17af60e87
|
||||
Subproject commit d99036822287d817bb2e6a1c3a6e7586996d4da3
|
|
@ -1 +1 @@
|
|||
Subproject commit 0026672d4b6fc922bd6f80df9a2858ce1e8cc0ed
|
||||
Subproject commit 9f4d09bde013ab062c4a4a6e32506c15936ae221
|
|
@ -1 +1 @@
|
|||
Subproject commit 4d4aa5fe553a47ef5c5c6d0a97bb487fdfda2d5b
|
||||
Subproject commit 918610d427503c5c7b380eae4a954bd8cb427db5
|
Loading…
Reference in New Issue