|
|
@ -4,9 +4,7 @@
|
|
|
|
==================== READ THIS BEFORE CONTINUING ====================
|
|
|
|
==================== READ THIS BEFORE CONTINUING ====================
|
|
|
|
=====================================================================
|
|
|
|
=====================================================================
|
|
|
|
|
|
|
|
|
|
|
|
Kickstart.nvim is *not* a distribution.
|
|
|
|
Kickstart.nvim is *not* a distribution. Kickstart.nvim is a template for your own configuration.
|
|
|
|
|
|
|
|
|
|
|
|
Kickstart.nvim is a template for your own configuration.
|
|
|
|
|
|
|
|
The goal is that you can read every line of code, top-to-bottom, understand
|
|
|
|
The goal is that you can read every line of code, top-to-bottom, understand
|
|
|
|
what your configuration is doing, and modify it to suit your needs.
|
|
|
|
what your configuration is doing, and modify it to suit your needs.
|
|
|
|
|
|
|
|
|
|
|
@ -232,54 +230,11 @@ require('lazy').setup({
|
|
|
|
|
|
|
|
|
|
|
|
-- [[ Setting options ]]
|
|
|
|
-- [[ Setting options ]]
|
|
|
|
-- See `:help vim.o`
|
|
|
|
-- See `:help vim.o`
|
|
|
|
-- NOTE: You can change these options as you wish!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Set highlight on search
|
|
|
|
|
|
|
|
vim.o.hlsearch = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Make line numbers default
|
|
|
|
|
|
|
|
vim.wo.number = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Enable mouse mode
|
|
|
|
|
|
|
|
vim.o.mouse = 'a'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Sync clipboard between OS and Neovim.
|
|
|
|
|
|
|
|
-- Remove this option if you want your OS clipboard to remain independent.
|
|
|
|
|
|
|
|
-- See `:help 'clipboard'`
|
|
|
|
|
|
|
|
vim.o.clipboard = 'unnamedplus'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Enable break indent
|
|
|
|
|
|
|
|
vim.o.breakindent = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Save undo history
|
|
|
|
|
|
|
|
vim.o.undofile = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Case-insensitive searching UNLESS \C or capital in search
|
|
|
|
|
|
|
|
vim.o.ignorecase = true
|
|
|
|
|
|
|
|
vim.o.smartcase = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Keep signcolumn on by default
|
|
|
|
|
|
|
|
vim.wo.signcolumn = 'yes'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Decrease update time
|
|
|
|
|
|
|
|
vim.o.updatetime = 250
|
|
|
|
|
|
|
|
vim.o.timeoutlen = 300
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Set completeopt to have a better completion experience
|
|
|
|
|
|
|
|
vim.o.completeopt = 'menuone,noselect'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- NOTE: You should make sure your terminal supports this
|
|
|
|
|
|
|
|
vim.o.termguicolors = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- [[ Basic Keymaps ]]
|
|
|
|
-- [[ Basic Keymaps ]]
|
|
|
|
|
|
|
|
|
|
|
|
-- Keymaps for better default experience
|
|
|
|
-- Keymaps for better default experience
|
|
|
|
-- See `:help vim.keymap.set()`
|
|
|
|
-- See `:help vim.keymap.set()`
|
|
|
|
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
|
|
|
|
require('custom.config.options')
|
|
|
|
|
|
|
|
require('custom.config.keymaps')
|
|
|
|
-- Remap for dealing with word wrap
|
|
|
|
|
|
|
|
vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
|
|
|
|
|
|
|
|
vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- [[ Highlight on yank ]]
|
|
|
|
-- [[ Highlight on yank ]]
|
|
|
|
-- See `:help vim.highlight.on_yank()`
|
|
|
|
-- See `:help vim.highlight.on_yank()`
|
|
|
@ -319,11 +274,11 @@ vim.keymap.set('n', '<leader>/', function()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
end, { desc = '[/] Fuzzily search in current buffer' })
|
|
|
|
end, { desc = '[/] Fuzzily search in current buffer' })
|
|
|
|
|
|
|
|
|
|
|
|
vim.keymap.set('n', '<leader>gf', require('telescope.builtin').git_files, { desc = 'Search [G]it [F]iles' })
|
|
|
|
vim.keymap.set('n', '<leader>ff', require('telescope.builtin').git_files, { desc = 'Search [G]it [F]iles' })
|
|
|
|
vim.keymap.set('n', '<leader>sf', require('telescope.builtin').find_files, { desc = '[S]earch [F]iles' })
|
|
|
|
vim.keymap.set('n', '<C-f>', require('telescope.builtin').find_files, { desc = '[S]earch [F]iles' })
|
|
|
|
vim.keymap.set('n', '<leader>sh', require('telescope.builtin').help_tags, { desc = '[S]earch [H]elp' })
|
|
|
|
vim.keymap.set('n', '<leader>fg', require('telescope.builtin').live_grep, { desc = '[S]earch by [G]rep' })
|
|
|
|
vim.keymap.set('n', '<leader>sw', require('telescope.builtin').grep_string, { desc = '[S]earch current [W]ord' })
|
|
|
|
vim.keymap.set({'n', 'v'}, '<C-g>', require('telescope.builtin').grep_string, { desc = '[S]earch current [W]ord' })
|
|
|
|
vim.keymap.set('n', '<leader>sg', require('telescope.builtin').live_grep, { desc = '[S]earch by [G]rep' })
|
|
|
|
vim.keymap.set('n', '<leader>fh', require('telescope.builtin').help_tags, { desc = '[S]earch [H]elp' })
|
|
|
|
vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { desc = '[S]earch [D]iagnostics' })
|
|
|
|
vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { desc = '[S]earch [D]iagnostics' })
|
|
|
|
vim.keymap.set('n', '<leader>sr', require('telescope.builtin').resume, { desc = '[S]earch [R]esume' })
|
|
|
|
vim.keymap.set('n', '<leader>sr', require('telescope.builtin').resume, { desc = '[S]earch [R]esume' })
|
|
|
|
|
|
|
|
|
|
|
@ -476,8 +431,8 @@ local servers = {
|
|
|
|
-- gopls = {},
|
|
|
|
-- gopls = {},
|
|
|
|
-- pyright = {},
|
|
|
|
-- pyright = {},
|
|
|
|
-- rust_analyzer = {},
|
|
|
|
-- rust_analyzer = {},
|
|
|
|
-- tsserver = {},
|
|
|
|
tsserver = {},
|
|
|
|
-- html = { filetypes = { 'html', 'twig', 'hbs'} },
|
|
|
|
html = { filetypes = { 'html', 'twig', 'hbs'} },
|
|
|
|
|
|
|
|
|
|
|
|
lua_ls = {
|
|
|
|
lua_ls = {
|
|
|
|
Lua = {
|
|
|
|
Lua = {
|
|
|
|