21 Commits

Author SHA1 Message Date
TJ DeVries
d8784b62db opt -> opts, ty folke part 2 2023-02-17 10:45:02 -05:00
TJ DeVries
33469ef03d fix several of folke's comments 2023-02-17 10:06:48 -05:00
TJ DeVries
bdbe2f3ae2 getting to the closing part of this repo 2023-02-16 17:31:31 -05:00
TJ DeVries
e5c03b4206 add whichkey 2023-02-16 17:12:47 -05:00
TJ DeVries
775ff6ac89 more docs 2023-02-16 17:11:01 -05:00
TJ DeVries
ba5786cde4 more docs 2023-02-16 17:09:21 -05:00
TJ DeVries
a7400529d7 more docs 2023-02-16 17:05:17 -05:00
TJ DeVries
eea0adb4fe more docs 2023-02-16 17:04:22 -05:00
TJ DeVries
c33d911e60 more docs 2023-02-16 17:02:44 -05:00
TJ DeVries
e40d7048d4 more docs 2023-02-16 17:02:01 -05:00
TJ DeVries
5ba0db5522 readme 2023-02-16 16:57:42 -05:00
TJ DeVries
0d7e4dadab debug works much better now 2023-02-15 21:01:33 -05:00
TJ DeVries
1a2a96be4c move to good format after talking to folke 2023-02-15 16:23:05 -05:00
TJ DeVries
36e99fbe35 note to self 2023-02-15 15:59:16 -05:00
TJ DeVries
d6ad146301 add example of autoformatting 2023-02-15 15:53:09 -05:00
TJ DeVries
4d218e3b8a add a few more todos for myself 2023-02-15 15:40:28 -05:00
TJ DeVries
69d7d4a081 fix typo 2023-02-15 15:34:50 -05:00
TJ DeVries
1afbeca63f docs 2023-02-15 15:34:45 -05:00
TJ DeVries
68a0332ac2 tree-sitter updates 2023-02-15 15:31:18 -05:00
TJ DeVries
4f112819b1 move leader to top of file 2023-02-15 15:19:01 -05:00
TJ DeVries
c6629b47ff begin refresh 2023-02-15 15:15:42 -05:00
4 changed files with 45 additions and 48 deletions

View File

@@ -8,21 +8,19 @@ assignees: ''
---
<!-- Any bug report not following this template will be immediately closed. Thanks -->
**Describe the bug**
A clear and concise description of what the bug is.
## Describe the bug
<!-- A clear and concise description of what the bug is. -->
## To Reproduce
<!-- Steps to reproduce the behavior. -->
**To Reproduce**
Steps to reproduce the behavior:
1. ...
## Desktop
<!-- please complete the following information. -->
**Desktop (please complete the following information):**
- OS:
- Terminal:
## Neovim Version
<!-- Output of running `:version` from inside of neovim. -->
** Neovim Version **
- Output of running `:version` from inside of neovim:
```
```

View File

@@ -64,9 +64,6 @@ This will automatically install `nvim-autopairs` and enable it on startup. For m
In the file: `lua/custom/plugins/filetree.lua`, add:
```lua
-- Unless you are still migrating, remove the deprecated commands from v1.x
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
return {
"nvim-neo-tree/neo-tree.nvim",
version = "*",
@@ -76,12 +73,15 @@ return {
"MunifTanjim/nui.nvim",
},
config = function ()
-- Unless you are still migrating, remove the deprecated commands from v1.x
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
require('neo-tree').setup {}
end,
}
```
This will install the tree plugin and add the command `:Neotree` for you. You can explore the documentation at [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) for more information.
This will install the tree plugin and add the command `:NeoTree` for you. You can explore the documentation at [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) for more information.
#### Example: Adding a file to change default options
@@ -118,13 +118,13 @@ Each PR, especially those which increase the line count, should have a descripti
Installation may require installing build tools, and updating the run command for `telescope-fzf-native`
See `telescope-fzf-native` documentation for [more details](https://github.com/nvim-telescope/telescope-fzf-native.nvim#installation)
See `telescope-fzf-native` documention for [more details](https://github.com/nvim-telescope/telescope-fzf-native.nvim#installation)
This requires:
- Install CMake, and the Microsoft C++ Build Tools on Windows
```lua
{'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' }
use {'nvim-telescope/telescope-fzf-native.nvim', run = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' }
```

View File

@@ -35,6 +35,7 @@ I hope you enjoy your Neovim journey,
P.S. You can delete this when you're done too. It's your config now :)
--]]
-- Set <space> as the leader key
-- See `:help mapleader`
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
@@ -74,33 +75,30 @@ require('lazy').setup({
-- NOTE: This is where your plugins related to LSP can be installed.
-- The configuration is done below. Search for lspconfig to find it below.
{
-- LSP Configuration & Plugins
{ -- LSP Configuration & Plugins
'neovim/nvim-lspconfig',
dependencies = {
-- Automatically install LSPs to stdpath for neovim
{ 'williamboman/mason.nvim', config = true },
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
-- Useful status updates for LSP
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
{ 'j-hui/fidget.nvim', opts = {} },
{ 'j-hui/fidget.nvim', opts = {} },
-- Additional lua configuration, makes nvim stuff amazing!
'folke/neodev.nvim',
},
},
{
-- Autocompletion
{ -- Autocompletion
'hrsh7th/nvim-cmp',
dependencies = { 'hrsh7th/cmp-nvim-lsp', 'L3MON4D3/LuaSnip', 'saadparwaiz1/cmp_luasnip' },
},
-- Useful plugin to show you pending keybinds.
{ 'folke/which-key.nvim', opts = {} },
{
-- Adds git releated signs to the gutter, as well as utilities for managing changes
{ 'folke/which-key.nvim', opts = {} },
{ -- Adds git releated signs to the gutter, as well as utilities for managing changes
'lewis6991/gitsigns.nvim',
opts = {
-- See `:help gitsigns.txt`
@@ -114,8 +112,7 @@ require('lazy').setup({
},
},
{
-- Theme inspired by Atom
{ -- Theme inspired by Atom
'navarasu/onedark.nvim',
priority = 1000,
config = function()
@@ -123,8 +120,7 @@ require('lazy').setup({
end,
},
{
-- Set lualine as statusline
{ -- Set lualine as statusline
'nvim-lualine/lualine.nvim',
-- See `:help lualine.txt`
opts = {
@@ -137,8 +133,7 @@ require('lazy').setup({
},
},
{
-- Add indentation guides even on blank lines
{ -- Add indentation guides even on blank lines
'lukas-reineke/indent-blankline.nvim',
-- Enable `lukas-reineke/indent-blankline.nvim`
-- See `:help indent_blankline.txt`
@@ -149,7 +144,7 @@ require('lazy').setup({
},
-- "gc" to comment visual regions/lines
{ 'numToStr/Comment.nvim', opts = {} },
{ 'numToStr/Comment.nvim', opts = {} },
-- Fuzzy Finder (files, lsp, etc)
{ 'nvim-telescope/telescope.nvim', version = '*', dependencies = { 'nvim-lua/plenary.nvim' } },
@@ -167,10 +162,14 @@ require('lazy').setup({
end,
},
{
-- Highlight, edit, and navigate code
{ -- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter',
build = ":TSUpdate",
dependencies = {
'nvim-treesitter/nvim-treesitter-textobjects',
},
config = function()
pcall(require('nvim-treesitter.install').update { with_sync = true })
end,
},
-- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
@@ -202,11 +201,6 @@ 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
@@ -289,7 +283,7 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de
-- See `:help nvim-treesitter`
require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim' },
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'help', 'vim' },
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,
@@ -352,10 +346,10 @@ require('nvim-treesitter.configs').setup {
}
-- Diagnostic keymaps
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = "Go to previous diagnostic message" })
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = "Go to next diagnostic message" })
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = "Open floating diagnostic message" })
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = "Open diagnostics list" })
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)
vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float)
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist)
-- LSP settings.
-- This function gets run when an LSP connects to a particular buffer.
@@ -429,6 +423,9 @@ require('neodev').setup()
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
-- Setup mason so it can manage external tooling
require('mason').setup()
-- Ensure the servers above are installed
local mason_lspconfig = require 'mason-lspconfig'

View File

@@ -9,6 +9,7 @@
return {
-- NOTE: Yes, you can install new plugins here!
'mfussenegger/nvim-dap',
-- NOTE: And you can specify dependencies as well
dependencies = {
-- Creates a beautiful debugger UI
@@ -21,6 +22,7 @@ return {
-- Add your own debuggers here
'leoluz/nvim-dap-go',
},
config = function()
local dap = require 'dap'
local dapui = require 'dapui'
@@ -30,10 +32,6 @@ return {
-- reasonable debug configurations
automatic_setup = true,
-- You can provide additional configuration to the handlers,
-- see mason-nvim-dap README for more information
handlers = {},
-- You'll need to check that you have the required things installed
-- online, please don't ask me how to install them :)
ensure_installed = {
@@ -42,6 +40,10 @@ return {
},
}
-- You can provide additional configuration to the handlers,
-- see mason-nvim-dap README for more information
require('mason-nvim-dap').setup_handlers()
-- Basic debugging keymaps, feel free to change to your liking!
vim.keymap.set('n', '<F5>', dap.continue)
vim.keymap.set('n', '<F1>', dap.step_into)