This commit is contained in:
jimrothstein 2023-09-07 13:54:43 -07:00
parent 21f381c8fa
commit 5fb54ac040
1 changed files with 16 additions and 2 deletions

View File

@ -32,6 +32,9 @@ These are for you, the reader to help understand what is happening. Feel free to
them once you know what you're doing, but they should serve as a guide for when you them once you know what you're doing, but they should serve as a guide for when you
are first encountering a few different constructs in your nvim config. are first encountering a few different constructs in your nvim config.
TJ's video walks through this !
<https://www.youtube.com/watch?v=stqUbv-5u2s>
I hope you enjoy your Neovim journey, I hope you enjoy your Neovim journey,
- TJ - TJ
@ -84,6 +87,8 @@ require('lazy').setup({
-- NOTE: This is where your plugins related to LSP can be installed. -- NOTE: This is where your plugins related to LSP can be installed.
-- The configuration is done below. Search for lspconfig to find it below. -- The configuration is done below. Search for lspconfig to find it below.
-- mason -- installs the lsp server
-- nvim-lspconfig -- connect LSP to our setup ?
{ {
-- LSP Configuration & Plugins -- LSP Configuration & Plugins
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
@ -183,8 +188,9 @@ require('lazy').setup({
{ {
-- Set lualine as statusline -- Set lualine as statusline
-- See `:help lualine.txt` (opts is same as require('xxxx').setup())
--
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
-- See `:help lualine.txt`
opts = { opts = {
options = { options = {
icons_enabled = false, icons_enabled = false,
@ -278,6 +284,9 @@ end
-- Nvim-R -- Nvim-R
vim.cmd [[let R_assign = 2]] -- __ becomes left arrow vim.cmd [[let R_assign = 2]] -- __ becomes left arrow
-- always display top/bottom 8 lines
vim.opt.scrolloff = 8
vim.opt.colorcolumn = "80"
-- Set highlight on search -- Set highlight on search
vim.o.hlsearch = false vim.o.hlsearch = false
@ -331,6 +340,9 @@ vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = tr
vim.keymap.set('n', '<leader>ck', ':e ~/.config/kickstart/init.lua<CR>', { desc = 'Config Kickstart' }) vim.keymap.set('n', '<leader>ck', ':e ~/.config/kickstart/init.lua<CR>', { desc = 'Config Kickstart' })
-- insert # --------...
vim.keymap.set("n", "<leader>ic", "yypVr-I# <ESC>", { desc = "[ic]insert comment line"})
-- [[ Highlight on yank ]] -- [[ Highlight on yank ]]
-- See `:help vim.highlight.on_yank()` -- See `:help vim.highlight.on_yank()`
--{{{ --{{{
@ -425,7 +437,9 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de
-- [[ Configure Treesitter ]] -- [[ Configure Treesitter ]]
-- See `:help nvim-treesitter` -- See `:help nvim-treesitter`
--
require('nvim-treesitter.configs').setup { require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter -- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim' }, ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim' },
@ -440,7 +454,7 @@ require('nvim-treesitter.configs').setup {
init_selection = '<c-space>', init_selection = '<c-space>',
node_incremental = '<c-space>', node_incremental = '<c-space>',
scope_incremental = '<c-s>', scope_incremental = '<c-s>',
node_decremental = '<M-space>', node_decremental = '<M-space>', -- problem here
}, },
}, },
textobjects = { textobjects = {