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,21 +2,21 @@
[cmp (require :cmp)
luasnip (require :luasnip)
]
{:keymap (fn []
(let [nmap #(vim.keymap.set [:n] $1 $2 {:desc $3})]
(nmap "<Tab>" ":bnext<CR>" "Next Buffer")
(nmap "<S-Tab>" ":bprevious<CR>" "Previous Buffer")
(nmap "<C-X>" ":write|bdelete<CR>" "Save and delete buffer")
(nmap "<C-P>" ":Telescope find_files<CR>" "Telescope find_files")
(nmap "<C-F>" ":Telescope live_grep<CR>" "Telescope live_grep")
(nmap "<C-B>" ":Telescope buffers<CR>" "Telescope buffers")
(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))
: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})]
(nmap "<Tab>" ":bnext<CR>" "Next Buffer")
(nmap "<S-Tab>" ":bprevious<CR>" "Previous Buffer")
(nmap "<C-X>" ":write|bdelete<CR>" "Save and delete buffer")
(nmap "<C-P>" ":Telescope find_files<CR>" "Telescope find_files")
(nmap "<C-F>" ":Telescope live_grep<CR>" "Telescope live_grep")
(nmap "<C-B>" ":Telescope buffers<CR>" "Telescope buffers")
(nmap "<C-T>" ":Telescope treesitter<CR>" "Telescope treesitter")))
:cmp-mapping
{:<C-j> (cmp.mapping.select_next_item)
@ -48,6 +48,7 @@
[:vim
]}}}
:bashls {:filetypes [:bash]}}
:lsp-attach (fn [_ bufnr]
(let
[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
[cmp (require :cmp)
luasnip (require :luasnip)

View file

@ -1,4 +1,3 @@
;; language server protocols via mason
(let
[neodev (require :neodev)
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
[treesitter (require :nvim-treesitter.configs)]
(treesitter.setup