This commit is contained in:
Talon 2023-07-28 08:38:06 -06:00
parent ffa829c7d3
commit 15bbd0e138
4 changed files with 15 additions and 19 deletions

View file

@ -2,7 +2,13 @@
[cmp (require :cmp) [cmp (require :cmp)
luasnip (require :luasnip) luasnip (require :luasnip)
] ]
{:keymap (fn [] {:options (fn []
(set vim.o.termguicolors true)
(set vim.o.mouse :a)
(set vim.o.clipboard :unnamedplus)
(vim.cmd.colorscheme :everforest))
:keymap (fn []
(let [nmap #(vim.keymap.set [:n] $1 $2 {:desc $3})] (let [nmap #(vim.keymap.set [:n] $1 $2 {:desc $3})]
(nmap "<Tab>" ":bnext<CR>" "Next Buffer") (nmap "<Tab>" ":bnext<CR>" "Next Buffer")
(nmap "<S-Tab>" ":bprevious<CR>" "Previous Buffer") (nmap "<S-Tab>" ":bprevious<CR>" "Previous Buffer")
@ -12,12 +18,6 @@
(nmap "<C-B>" ":Telescope buffers<CR>" "Telescope buffers") (nmap "<C-B>" ":Telescope buffers<CR>" "Telescope buffers")
(nmap "<C-T>" ":Telescope treesitter<CR>" "Telescope treesitter"))) (nmap "<C-T>" ":Telescope treesitter<CR>" "Telescope treesitter")))
:options (fn []
(set vim.o.termguicolors true)
(set vim.o.mouse :a)
(set vim.o.clipboard :unnamedplus)
(vim.cmd.colorscheme :everforest))
:cmp-mapping :cmp-mapping
{:<C-j> (cmp.mapping.select_next_item) {:<C-j> (cmp.mapping.select_next_item)
:<C-k> (cmp.mapping.select_prev_item) :<C-k> (cmp.mapping.select_prev_item)
@ -48,6 +48,7 @@
[:vim [:vim
]}}} ]}}}
:bashls {:filetypes [:bash]}} :bashls {:filetypes [:bash]}}
:lsp-attach (fn [_ bufnr] :lsp-attach (fn [_ bufnr]
(let (let
[nmap #(vim.keymap.set :n $1 $2 {:buffer bufnr :desc (.. "LSP: " $3)}) [nmap #(vim.keymap.set :n $1 $2 {:buffer bufnr :desc (.. "LSP: " $3)})

View file

@ -1,4 +1,3 @@
;; Autocompletion and Snippets with nvim-cmp and luasnip
(let (let
[cmp (require :cmp) [cmp (require :cmp)
luasnip (require :luasnip) luasnip (require :luasnip)

View file

@ -1,4 +1,3 @@
;; language server protocols via mason
(let (let
[neodev (require :neodev) [neodev (require :neodev)
mason (require :mason) mason (require :mason)

View file

@ -1,6 +1,3 @@
;; Syntax Highlighting via Treesitter
;; NOTE: if you add a language to treesitter for syntax highlighting or otherwise
;; consider also adding the LSP via Mason below...
(let (let
[treesitter (require :nvim-treesitter.configs)] [treesitter (require :nvim-treesitter.configs)]
(treesitter.setup (treesitter.setup