tree picker and go

This commit is contained in:
Wil Simpson 2023-03-13 15:13:29 -04:00
parent ca533432a6
commit 9953fa644c
3 changed files with 27 additions and 2 deletions

View File

@ -203,7 +203,7 @@ vim.o.mouse = 'a'
-- Sync clipboard between OS and Neovim. -- Sync clipboard between OS and Neovim.
-- Remove this option if you want your OS clipboard to remain independent. -- Remove this option if you want your OS clipboard to remain independent.
-- See `:help 'clipboard'` -- See `:help 'clipboard'`
vim.o.clipboard = 'unnamedplus' -- vim.o.clipboard = 'unnamedplus'
-- Enable break indent -- Enable break indent
vim.o.breakindent = true vim.o.breakindent = true
@ -233,9 +233,15 @@ vim.o.termguicolors = true
vim.o.relativenumber = true vim.o.relativenumber = true
vim.o.number = true vim.o.number = true
-- Set scroll offsets to have additional space when scrolling
vim.o.scrolloff = 5 vim.o.scrolloff = 5
vim.o.sidescrolloff = 10 vim.o.sidescrolloff = 10
-- Set tabs to 2 spaces
vim.o.tabstop = 2
vim.o.softtabstop = 2
vim.o.shiftwidth = 2
-- [[ Basic Keymaps ]] -- [[ Basic Keymaps ]]
-- Keymaps for better default experience -- Keymaps for better default experience
@ -406,7 +412,7 @@ local on_attach = function(_, bufnr)
vim.lsp.buf.format() vim.lsp.buf.format()
end, { desc = 'Format current buffer with LSP' }) end, { desc = 'Format current buffer with LSP' })
nmap('<leader>f', function() vim.lsp.buf.format { async = true } end, 'Auto [F]ormat') nmap('<leader><C-f>', function() vim.lsp.buf.format { async = true } end, 'Auto [F]ormat')
end end
-- Enable the following language servers -- Enable the following language servers

12
lua/custom/plugins/go.lua Normal file
View File

@ -0,0 +1,12 @@
return {
'ray-x/go.nvim',
requires = {
'ray-x/guihua.lua'
},
config = function()
require("go").setup()
end,
event = { 'CmdlineEnter' },
ft = { 'go', 'gomod' },
build = ':lua require("go.install").update_all_sync()',
}

View File

@ -0,0 +1,7 @@
return {
's1n7ax/nvim-window-picker',
version = "*",
config = function()
require('window-picker').setup()
end
}