move neovim modules init order

This commit is contained in:
2025-05-23 23:54:13 +05:00
parent c42731619c
commit 6cd9ee30a5
5 changed files with 8 additions and 8 deletions

View File

@ -3,18 +3,18 @@ require("user.plugins")
require("user.themes.kanagawa") require("user.themes.kanagawa")
vim.cmd("colorscheme kanagawa") vim.cmd("colorscheme kanagawa")
require("user.bufferline")
require("user.options") require("user.options")
require("user.keymaps") require("user.keymaps")
require("user.cmp") require("user.cmp")
require("user.nvim_navic")
require("user.lsp") require("user.lsp")
require("user.lsp_format")
require("user.nvim_navic")
require("user.treesitter") require("user.treesitter")
require("user.bufferline")
require("user.blank_indent_highlight") require("user.blank_indent_highlight")
require("user.autopairs") require("user.autopairs")
require("user.telescope") require("user.telescope")
require("user.lsp_format")
-- require("user.neoscroll") -- require("user.neoscroll")
require("user.dropbar") require("user.dropbar")
require("user.nvim_scrollbar") require("user.nvim_scrollbar")
@ -27,4 +27,3 @@ require("user.oil")
require("user.which_key") require("user.which_key")
require("user.harpoon") require("user.harpoon")
vim.cmd("set cursorline")

View File

@ -1,12 +1,10 @@
local dap_status_ok, dap = pcall(require, "dap") local dap_status_ok, dap = pcall(require, "dap")
if not dap_status_ok then if not dap_status_ok then
print("aaaaa")
return return
end end
local dapui_status_ok, dapui = pcall(require, "dapui") local dapui_status_ok, dapui = pcall(require, "dapui")
if not dapui_status_ok then if not dapui_status_ok then
print("fasdfasdfasdfasdf")
return return
end end

View File

@ -7,6 +7,6 @@ mason.setup()
require("user.lsp.mason_lsp_config") require("user.lsp.mason_lsp_config")
require("user.lsp.diagnostics_config").setup() 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}' ]]) vim.cmd([[ command! Format execute 'lua vim.lsp.buf.format{async=true}' ]])

View File

@ -18,7 +18,7 @@ null_ls.setup({
sources = { sources = {
-- formatting.prettier.with({ extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" } }), -- formatting.prettier.with({ extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" } }),
-- formatting.black.with({ extra_args = { "--fast" } }), -- formatting.black.with({ extra_args = { "--fast" } }),
formatting.isort, -- formatting.isort,
formatting.stylua, formatting.stylua,
-- diagnostics.mypy, -- diagnostics.mypy,
}, },

View File

@ -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 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 "au VimLeave * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Caps_Lock'"
vim.cmd [[autocmd BufWritePre <buffer> lua vim.lsp.buf.format()]] vim.cmd [[autocmd BufWritePre <buffer> lua vim.lsp.buf.format()]]
vim.cmd "set cursorline"