Update 08.08.2023

This commit is contained in:
Kristofers Solo
2023-08-08 17:04:57 +03:00
parent abad4c0ad5
commit 9e449312d7
15 changed files with 283 additions and 149 deletions

View File

@@ -1,6 +1,12 @@
return {
{ "mfussenegger/nvim-dap", lazy = true },
{ "rcarriga/nvim-dap-ui", lazy = true },
{ "jayp0521/mason-nvim-dap.nvim", lazy = true },
{ "rcarriga/nvim-dap-ui", event = "VeryLazy", dependencies = "jayp0521/mason-nvim-dap.nvim" },
{
"jayp0521/mason-nvim-dap.nvim",
event = "VeryLazy",
dependencies = {
"williamboman/mason.nvim",
"mfussenegger/nvim-dap",
},
},
{ "ravenxrz/DAPInstall.nvim", lazy = true },
}

View File

@@ -7,14 +7,24 @@ return {
{ "nvim-tree/nvim-web-devicons", lazy = true },
{ "nvim-tree/nvim-tree.lua" },
{ "moll/vim-bbye" },
{ "nvim-lualine/lualine.nvim" },
{ "arkav/lualine-lsp-progress" },
{ "akinsho/toggleterm.nvim" },
{ "ahmedkhalf/project.nvim" },
{ "lewis6991/impatient.nvim" },
{ "lukas-reineke/indent-blankline.nvim" },
{ "goolord/alpha-nvim", lazy = true },
{ "willothy/veil.nvim", lazy = true },
{ "henriquehbr/nvim-startup.lua", lazy = true },
{ "andweeb/presence.nvim" },
{ "NvChad/nvim-colorizer.lua" },
{ "uga-rosa/ccc.nvim", lazy = true },
{ "alvan/vim-closetag" },
{ "tpope/vim-surround" },
{ "mbbill/undotree", lazy = true },
@@ -38,19 +48,27 @@ return {
-- Vimwiki
{ "vimwiki/vimwiki" },
{ "epwalsh/obsidian.nvim", lazy = true },
{ "stevearc/oil.nvim" },
-- C++
{ "p00f/clangd_extensions.nvim", lazy = true },
{ "Civitasv/cmake-tools.nvim", lazy = true },
-- Rust
{ "Saecki/crates.nvim", lazy = true },
{ "simrat39/rust-tools.nvim", lazy = true },
-- Git
{ "lewis6991/gitsigns.nvim" },
{ "codota/tabnine-nvim", build = "./dl_binaries.sh" },
{ "rest-nvim/rest.nvim", lazy = true },
{ "chipsenkbeil/distant.nvim", lazy = true },
{
"iamcco/markdown-preview.nvim",
build = function()
vim.fn["mkdp#util#install"]()
end,
},
{
"kevinhwang91/nvim-ufo",
dependencies = {
"kevinhwang91/promise-async",
},
},
}

View File

@@ -2,7 +2,18 @@ return {
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
"neovim/nvim-lspconfig", -- enable LSP
"jose-elias-alvarez/null-ls.nvim", -- for formatters and linters
{ "jose-elias-alvarez/null-ls.nvim", event = "VeryLazy" }, -- for formatters and linters
"jayp0521/mason-null-ls.nvim",
"RRethy/vim-illuminate",
{ "nanotee/sqls.nvim", lazy = true },
-- C++
{ "p00f/clangd_extensions.nvim", lazy = true },
{ "Civitasv/cmake-tools.nvim", lazy = true },
-- Rust
{ "Saecki/crates.nvim", lazy = true },
{ "simrat39/rust-tools.nvim", lazy = true },
-- { "codota/tabnine-nvim", event = "VeryLazy", build = "./dl_binaries.sh" },
}

View File

@@ -6,4 +6,5 @@ return {
"rafamadriz/friendly-snippets", -- a bunch of snippets to use
},
}, --snippet engine
-- { "codota/tabnine-nvim", build = "./dl_binaries.sh" },
}

View File

@@ -68,7 +68,7 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
-- Set tab size for the following file types to 2
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = { "vimwiki", "java", "sql" },
pattern = { "vimwiki", "sql" },
callback = function()
vim.opt_local.ts = 2
vim.opt_local.sw = 2
@@ -103,19 +103,3 @@ vim.api.nvim_create_autocmd({ "BufWritePost" }, {
require("lazy").sync()
end,
})
-- vim.api.nvim_create_autocmd({ "BufWinLeave" }, {
-- group = vim.api.nvim_create_augroup("AutoSaveFold", { clear = true }),
-- pattern = { "*.*" },
-- callback = function()
-- vim.cmd.mkview()
-- end,
-- })
--
-- vim.api.nvim_create_autocmd({ "BufWinEnter" }, {
-- group = vim.api.nvim_create_augroup("LoadFold", { clear = true }),
-- pattern = { "*.*" },
-- callback = function()
-- vim.cmd.loadview()
-- end,
-- })

View File

@@ -29,6 +29,7 @@ local servers = {
"taplo",
"texlab",
"tsserver",
"tailwindcss",
}
mason.setup()

View File

@@ -9,28 +9,7 @@ if not mason_null_ls_status_ok then
end
mason_null_ls.setup({
ensure_installed = {
"autopep8",
"beautysh",
"clang_format",
"codespell",
"cpplint",
"djlint",
"gitlint",
"html_lint",
"isort",
"luacheck",
"misspell",
"mypy",
"phpcbf",
"phpcs",
"prettier",
"rustfmt",
"sql-formatter",
"shfmt",
"yamlfmt",
"cmakelang",
},
ensure_installed = {},
automatic_installation = true,
automatic_setup = true,
})
@@ -43,24 +22,20 @@ local diagnostics = null_ls.builtins.diagnostics
null_ls.setup({
debug = false,
sources = {
diagnostics.cmake_lint,
diagnostics.codespell,
diagnostics.cpplint,
diagnostics.luacheck.with({
extra_args = {
"--globals",
"vim",
},
}),
diagnostics.luacheck.with({ extra_args = { "--globals", "vim" } }),
diagnostics.misspell,
diagnostics.mypy,
diagnostics.cmake_lint,
formatting.cmake_format,
formatting.autopep8,
formatting.beautysh,
formatting.black,
formatting.cbfmt.with({ extra_filetypes = { "vimwiki" } }),
formatting.clang_format,
formatting.cmake_format,
formatting.djlint,
formatting.google_java_format,
formatting.isort,
formatting.phpcbf,
formatting.prettier.with({
extra_filetypes = { "toml" },
extra_args = {
@@ -74,25 +49,12 @@ null_ls.setup({
"strict",
},
}),
formatting.phpcbf,
formatting.rustfmt,
formatting.shfmt.with({
extra_filetypes = {
"bash",
"csh",
"ksh",
"sh",
"zsh",
},
}),
-- formatting.sql_formatter.with({
-- extra_args = {
-- "-c",
-- "/home/kristofers/.config/sql/sql-formatter.json",
-- },
-- }),
formatting.remark.with({ extra_filetypes = { "vimwiki" } }),
formatting.markdown_toc.with({ extra_filetypes = { "vimwiki" } }),
formatting.shellharden.with({ extra_filetypes = { "bash", "csh", "ksh", "zsh" } }),
formatting.shfmt.with({ extra_filetypes = { "bash", "csh", "ksh", "zsh" } }),
formatting.stylua,
formatting.usort,
formatting.yamlfmt,
formatting.black,
},
})