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) [cmp (require :cmp)
luasnip (require :luasnip) luasnip (require :luasnip)
] ]
{:keymap (fn [] {:options (fn []
(let [nmap #(vim.keymap.set [:n] $1 $2 {:desc $3})] (set vim.o.termguicolors true)
(nmap "<Tab>" ":bnext<CR>" "Next Buffer") (set vim.o.mouse :a)
(nmap "<S-Tab>" ":bprevious<CR>" "Previous Buffer") (set vim.o.clipboard :unnamedplus)
(nmap "<C-X>" ":write|bdelete<CR>" "Save and delete buffer") (vim.cmd.colorscheme :everforest))
(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 [] :keymap (fn []
(set vim.o.termguicolors true) (let [nmap #(vim.keymap.set [:n] $1 $2 {:desc $3})]
(set vim.o.mouse :a) (nmap "<Tab>" ":bnext<CR>" "Next Buffer")
(set vim.o.clipboard :unnamedplus) (nmap "<S-Tab>" ":bprevious<CR>" "Previous Buffer")
(vim.cmd.colorscheme :everforest)) (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 :cmp-mapping
{:<C-j> (cmp.mapping.select_next_item) {:<C-j> (cmp.mapping.select_next_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