lix/cachix
This commit is contained in:
parent
9fe35e28a4
commit
3c758d5346
8 changed files with 732 additions and 1040 deletions
|
|
@ -130,26 +130,27 @@ in
|
|||
require("render-markdown").setup {
|
||||
latex_converter = '${pkgs.python312Packages.pylatexenc}/bin/latex2text',
|
||||
}
|
||||
|
||||
local lspconfig = require 'lspconfig'
|
||||
local configs = require 'lspconfig.configs'
|
||||
if not configs.foo_lsp then
|
||||
configs.noteslsp = {
|
||||
default_config = {
|
||||
-- cmd = {'${pkgs.custom.noteslsp}/bin/noteslsp'},
|
||||
cmd = {'./noteslsp/target/debug/noteslsp'},
|
||||
filetypes = {'markdown'},
|
||||
root_dir = function(fname)
|
||||
return lspconfig.util.find_git_ancestor(fname)
|
||||
end,
|
||||
settings = {}
|
||||
,
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
lspconfig.noteslsp.setup{}
|
||||
''
|
||||
|
||||
# local lspconfig = require 'lspconfig'
|
||||
# local configs = require 'lspconfig.configs'
|
||||
# if not configs.foo_lsp then
|
||||
# configs.noteslsp = {
|
||||
# default_config = {
|
||||
# -- cmd = {'${pkgs.custom.noteslsp}/bin/noteslsp'},
|
||||
# cmd = {'./noteslsp/target/debug/noteslsp'},
|
||||
# filetypes = {'markdown'},
|
||||
# root_dir = function(fname)
|
||||
# return lspconfig.util.find_git_ancestor(fname)
|
||||
# end,
|
||||
# settings = {}
|
||||
# ,
|
||||
# },
|
||||
# }
|
||||
# end
|
||||
#
|
||||
# lspconfig.noteslsp.setup{}
|
||||
# ''
|
||||
+ (builtins.readFile ./config.lua);
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue