move neovim modules init order
This commit is contained in:
@ -1,12 +1,10 @@
|
||||
local dap_status_ok, dap = pcall(require, "dap")
|
||||
if not dap_status_ok then
|
||||
print("aaaaa")
|
||||
return
|
||||
end
|
||||
|
||||
local dapui_status_ok, dapui = pcall(require, "dapui")
|
||||
if not dapui_status_ok then
|
||||
print("fasdfasdfasdfasdf")
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@ -7,6 +7,6 @@ mason.setup()
|
||||
|
||||
require("user.lsp.mason_lsp_config")
|
||||
require("user.lsp.diagnostics_config").setup()
|
||||
-- require("user.none_ls") -- TODO: For now only uses python isort, uncomment when new stuff will be used
|
||||
-- require("user.lsp.none_ls")
|
||||
|
||||
vim.cmd([[ command! Format execute 'lua vim.lsp.buf.format{async=true}' ]])
|
||||
|
||||
@ -18,7 +18,7 @@ null_ls.setup({
|
||||
sources = {
|
||||
-- formatting.prettier.with({ extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" } }),
|
||||
-- formatting.black.with({ extra_args = { "--fast" } }),
|
||||
formatting.isort,
|
||||
-- formatting.isort,
|
||||
formatting.stylua,
|
||||
-- diagnostics.mypy,
|
||||
},
|
||||
@ -36,3 +36,6 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||
vim.cmd "au VimEnter * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'"
|
||||
vim.cmd "au VimLeave * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Caps_Lock'"
|
||||
vim.cmd [[autocmd BufWritePre <buffer> lua vim.lsp.buf.format()]]
|
||||
|
||||
|
||||
vim.cmd "set cursorline"
|
||||
|
||||
Reference in New Issue
Block a user