|
|
@ -13,6 +13,16 @@ vim.g.have_nerd_font = true
|
|
|
|
vim.opt.shiftwidth = 4
|
|
|
|
vim.opt.shiftwidth = 4
|
|
|
|
vim.opt.tabstop = 4
|
|
|
|
vim.opt.tabstop = 4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vim.g.mapleader = ' '
|
|
|
|
|
|
|
|
vim.g.maplocalleader = ' '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vim.g.have_nerd_font = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- tabs appear as 4 spaces
|
|
|
|
|
|
|
|
vim.opt.tabstop = 4
|
|
|
|
|
|
|
|
vim.opt.shiftwidth = 4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Make line numbers default
|
|
|
|
vim.opt.number = true
|
|
|
|
vim.opt.number = true
|
|
|
|
vim.opt.relativenumber = true
|
|
|
|
vim.opt.relativenumber = true
|
|
|
|
vim.opt.mouse = 'a'
|
|
|
|
vim.opt.mouse = 'a'
|
|
|
@ -392,6 +402,16 @@ require('lazy').setup({
|
|
|
|
end,
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Change diagnostic symbols in the sign column (gutter)
|
|
|
|
|
|
|
|
-- if vim.g.have_nerd_font then
|
|
|
|
|
|
|
|
-- local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
|
|
|
|
|
|
|
|
-- local diagnostic_signs = {}
|
|
|
|
|
|
|
|
-- for type, icon in pairs(signs) do
|
|
|
|
|
|
|
|
-- diagnostic_signs[vim.diagnostic.severity[type]] = icon
|
|
|
|
|
|
|
|
-- end
|
|
|
|
|
|
|
|
-- vim.diagnostic.config { signs = { text = diagnostic_signs } }
|
|
|
|
|
|
|
|
-- end
|
|
|
|
|
|
|
|
|
|
|
|
-- LSP servers and clients are able to communicate to each other what features they support.
|
|
|
|
-- LSP servers and clients are able to communicate to each other what features they support.
|
|
|
|
-- By default, Neovim doesn't support everything that is in the LSP specification.
|
|
|
|
-- By default, Neovim doesn't support everything that is in the LSP specification.
|
|
|
|
-- When you add nvim-cmp, luasnip, etc. Neovim now has *more* capabilities.
|
|
|
|
-- When you add nvim-cmp, luasnip, etc. Neovim now has *more* capabilities.
|
|
|
@ -410,8 +430,8 @@ require('lazy').setup({
|
|
|
|
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
|
|
|
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
|
|
|
local servers = {
|
|
|
|
local servers = {
|
|
|
|
-- clangd = {},
|
|
|
|
-- clangd = {},
|
|
|
|
-- gopls = {},
|
|
|
|
gopls = {},
|
|
|
|
-- pyright = {},
|
|
|
|
pyright = {},
|
|
|
|
-- rust_analyzer = {},
|
|
|
|
-- rust_analyzer = {},
|
|
|
|
-- ... 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
|
|
|
|
--
|
|
|
|
--
|
|
|
@ -451,6 +471,7 @@ require('lazy').setup({
|
|
|
|
local ensure_installed = vim.tbl_keys(servers or {})
|
|
|
|
local ensure_installed = vim.tbl_keys(servers or {})
|
|
|
|
vim.list_extend(ensure_installed, {
|
|
|
|
vim.list_extend(ensure_installed, {
|
|
|
|
'stylua', -- Used to format Lua code
|
|
|
|
'stylua', -- Used to format Lua code
|
|
|
|
|
|
|
|
'ruff', -- Used to lint and format Python code
|
|
|
|
})
|
|
|
|
})
|
|
|
|
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
|
|
|
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
|
|
|
|
|
|
|
|
|
|
@ -712,7 +733,7 @@ require('lazy').setup({
|
|
|
|
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
|
|
|
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
-- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
|
|
|
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
|
|
|
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
|
|
|
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
|
|
|
-- place them in the correct locations.
|
|
|
|
-- place them in the correct locations.
|
|
|
|
|
|
|
|
|
|
|
@ -721,7 +742,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',
|
|
|
|
-- require 'kickstart.plugins.lint',
|
|
|
|
-- require 'kickstart.plugins.lint',
|
|
|
|
-- require 'kickstart.plugins.autopairs',
|
|
|
|
-- require 'kickstart.plugins.autopairs',
|
|
|
@ -732,8 +753,12 @@ require('lazy').setup({
|
|
|
|
-- This is the easiest way to modularize your config.
|
|
|
|
-- This is the easiest way to modularize your config.
|
|
|
|
--
|
|
|
|
--
|
|
|
|
-- 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`
|
|
|
|
|
|
|
|
-- { import = 'custom.plugins' },
|
|
|
|
-- { import = 'custom.plugins' },
|
|
|
|
|
|
|
|
--
|
|
|
|
|
|
|
|
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
|
|
|
|
|
|
|
|
-- Or use telescope!
|
|
|
|
|
|
|
|
-- In normal mode type `<space>sh` then write `lazy.nvim-plugin`
|
|
|
|
|
|
|
|
-- you can continue same window with `<space>sr` which resumes last telescope search
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
ui = {
|
|
|
|
ui = {
|
|
|
|
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
|
|
|
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
|
|
|