nvim: handle lisp file type, change local leader
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
vim.g.maplocalleader = ' \\'
|
||||
|
||||
local key = vim.keymap.set
|
||||
local opts = { silent = true, noremap = true }
|
||||
|
||||
@@ -74,5 +74,8 @@ return {
|
||||
{ name = 'buffer' },
|
||||
},
|
||||
})
|
||||
cmp.setup.filetype('lisp', {
|
||||
sources = cmp.config.sources({ { name = 'nvlime' } })
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
22
nvim/.config/nvim/lua/plugins/lisp.lua
Normal file
22
nvim/.config/nvim/lua/plugins/lisp.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
return {
|
||||
{
|
||||
'monkoose/nvlime',
|
||||
ft = { 'lisp' },
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
'monkoose/parsley',
|
||||
'hrsh7th/nvim-cmp',
|
||||
},
|
||||
init = function()
|
||||
vim.g.nvlime_config = {
|
||||
cmp = { enabled = true },
|
||||
}
|
||||
end,
|
||||
},
|
||||
{
|
||||
"julienvincent/nvim-paredit",
|
||||
config = function()
|
||||
require("nvim-paredit").setup()
|
||||
end
|
||||
},
|
||||
}
|
||||
@@ -15,7 +15,7 @@ return {
|
||||
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
require('nvim-treesitter.configs').setup {
|
||||
ensure_installed = { 'c', 'cpp', 'go', 'haskell', 'lua', 'python', 'rust', 'tsx', 'templ', 'typescript', 'vimdoc', 'vim' },
|
||||
ensure_installed = { 'c', 'commonlisp', 'cpp', 'go', 'haskell', 'lua', 'python', 'rust', 'tsx', 'templ', 'typescript', 'vimdoc', 'vim' },
|
||||
auto_install = false,
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
Reference in New Issue
Block a user