|
|
@ -232,7 +232,7 @@ require('lazy').setup {
|
|
|
|
-- require('Comment').setup({})
|
|
|
|
-- require('Comment').setup({})
|
|
|
|
|
|
|
|
|
|
|
|
-- "gc" to comment visual regions/lines
|
|
|
|
-- "gc" to comment visual regions/lines
|
|
|
|
{ 'numToStr/Comment.nvim', opts = {} },
|
|
|
|
{ 'numToStr/Comment.nvim', opts = {} },
|
|
|
|
|
|
|
|
|
|
|
|
-- Here is a more advanced example where we pass configuration
|
|
|
|
-- Here is a more advanced example where we pass configuration
|
|
|
|
-- options to `gitsigns.nvim`. This is equivalent to the following lua:
|
|
|
|
-- options to `gitsigns.nvim`. This is equivalent to the following lua:
|
|
|
@ -267,7 +267,7 @@ require('lazy').setup {
|
|
|
|
-- after the plugin has been loaded:
|
|
|
|
-- after the plugin has been loaded:
|
|
|
|
-- config = function() ... end
|
|
|
|
-- config = function() ... end
|
|
|
|
|
|
|
|
|
|
|
|
{ -- Useful plugin to show you pending keybinds.
|
|
|
|
{ -- Useful plugin to show you pending keybinds.
|
|
|
|
'folke/which-key.nvim',
|
|
|
|
'folke/which-key.nvim',
|
|
|
|
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
|
|
|
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
|
|
|
config = function() -- This is the function that runs, AFTER loading
|
|
|
|
config = function() -- This is the function that runs, AFTER loading
|
|
|
@ -534,7 +534,13 @@ require('lazy').setup {
|
|
|
|
-- clangd = {},
|
|
|
|
-- clangd = {},
|
|
|
|
-- gopls = {},
|
|
|
|
-- gopls = {},
|
|
|
|
-- pyright = {},
|
|
|
|
-- pyright = {},
|
|
|
|
-- rust_analyzer = {},
|
|
|
|
rust_analyzer = {
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
|
|
|
|
check = {
|
|
|
|
|
|
|
|
command = "clippy",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
|
|
|
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
|
|
|
--
|
|
|
|
--
|
|
|
|
-- Some languages (like typescript) have entire language plugins that can be useful:
|
|
|
|
-- Some languages (like typescript) have entire language plugins that can be useful:
|
|
|
@ -605,6 +611,8 @@ require('lazy').setup {
|
|
|
|
|
|
|
|
|
|
|
|
{ -- Autoformat
|
|
|
|
{ -- Autoformat
|
|
|
|
'stevearc/conform.nvim',
|
|
|
|
'stevearc/conform.nvim',
|
|
|
|
|
|
|
|
event = { "BufWritePre" },
|
|
|
|
|
|
|
|
cmd = { "ConformInfo" },
|
|
|
|
opts = {
|
|
|
|
opts = {
|
|
|
|
notify_on_error = false,
|
|
|
|
notify_on_error = false,
|
|
|
|
format_on_save = {
|
|
|
|
format_on_save = {
|
|
|
@ -612,15 +620,18 @@ require('lazy').setup {
|
|
|
|
lsp_fallback = true,
|
|
|
|
lsp_fallback = true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
formatters_by_ft = {
|
|
|
|
formatters_by_ft = {
|
|
|
|
lua = { 'stylua' },
|
|
|
|
lua = { "stylua" },
|
|
|
|
-- Conform can also run multiple formatters sequentially
|
|
|
|
python = { "isort", "black" },
|
|
|
|
-- python = { "isort", "black" },
|
|
|
|
javascript = { { "prettierd", "prettier" } },
|
|
|
|
--
|
|
|
|
typescript = { { "prettierd", "prettier" } },
|
|
|
|
-- You can use a sub-list to tell conform to run *until* a formatter
|
|
|
|
rust = { "rustfmt" },
|
|
|
|
-- is found.
|
|
|
|
cpp = { "clang-format" },
|
|
|
|
-- javascript = { { "prettierd", "prettier" } },
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
init = function()
|
|
|
|
|
|
|
|
-- If you want the formatexpr, here is the place to set it
|
|
|
|
|
|
|
|
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
|
|
|
|
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
{ -- Autocompletion
|
|
|
|
{ -- Autocompletion
|
|
|
@ -722,7 +733,7 @@ require('lazy').setup {
|
|
|
|
--
|
|
|
|
--
|
|
|
|
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`
|
|
|
|
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`
|
|
|
|
'folke/tokyonight.nvim',
|
|
|
|
'folke/tokyonight.nvim',
|
|
|
|
lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
|
|
|
lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
|
|
|
priority = 1000, -- make sure to load this before all the other start plugins
|
|
|
|
priority = 1000, -- make sure to load this before all the other start plugins
|
|
|
|
config = function()
|
|
|
|
config = function()
|
|
|
|
-- Load the colorscheme here
|
|
|
|
-- Load the colorscheme here
|
|
|
@ -781,7 +792,7 @@ require('lazy').setup {
|
|
|
|
|
|
|
|
|
|
|
|
---@diagnostic disable-next-line: missing-fields
|
|
|
|
---@diagnostic disable-next-line: missing-fields
|
|
|
|
require('nvim-treesitter.configs').setup {
|
|
|
|
require('nvim-treesitter.configs').setup {
|
|
|
|
ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc' },
|
|
|
|
ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc', 'rust', 'svelte', 'typescript', 'tsx', 'javascript' },
|
|
|
|
-- Autoinstall languages that are not installed
|
|
|
|
-- Autoinstall languages that are not installed
|
|
|
|
auto_install = true,
|
|
|
|
auto_install = true,
|
|
|
|
highlight = { enable = true },
|
|
|
|
highlight = { enable = true },
|
|
|
@ -806,7 +817,7 @@ require('lazy').setup {
|
|
|
|
-- Here are some example plugins that I've included in the kickstart repository.
|
|
|
|
-- Here are some example plugins that I've included in the kickstart repository.
|
|
|
|
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
|
|
|
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
|
|
|
--
|
|
|
|
--
|
|
|
|
-- require 'kickstart.plugins.debug',
|
|
|
|
require 'kickstart.plugins.debug',
|
|
|
|
-- require 'kickstart.plugins.indent_line',
|
|
|
|
-- require 'kickstart.plugins.indent_line',
|
|
|
|
|
|
|
|
|
|
|
|
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
|
|
|
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
|
|
@ -814,7 +825,7 @@ require('lazy').setup {
|
|
|
|
--
|
|
|
|
--
|
|
|
|
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
|
|
|
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
|
|
|
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
|
|
|
|
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
|
|
|
|
-- { import = 'custom.plugins' },
|
|
|
|
{ import = 'custom.plugins' },
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
|
|
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
|
|
|