clean
This commit is contained in:
parent
ffa829c7d3
commit
15bbd0e138
|
@ -2,7 +2,13 @@
|
|||
[cmp (require :cmp)
|
||||
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})]
|
||||
(nmap "<Tab>" ":bnext<CR>" "Next Buffer")
|
||||
(nmap "<S-Tab>" ":bprevious<CR>" "Previous Buffer")
|
||||
|
@ -12,12 +18,6 @@
|
|||
(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))
|
||||
|
||||
:cmp-mapping
|
||||
{:<C-j> (cmp.mapping.select_next_item)
|
||||
:<C-k> (cmp.mapping.select_prev_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)})
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
;; Autocompletion and Snippets with nvim-cmp and luasnip
|
||||
(let
|
||||
[cmp (require :cmp)
|
||||
luasnip (require :luasnip)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
;; language server protocols via mason
|
||||
(let
|
||||
[neodev (require :neodev)
|
||||
mason (require :mason)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue