Neovim : Redirect errors to /tmp logfile.
This commit is contained in:
parent
493ef5ae02
commit
14f818974a
|
@ -66,10 +66,12 @@ in
|
|||
./module/plugin/Treesitter.nix
|
||||
./module/plugin/Fold.nix
|
||||
./module/plugin/Colorizer.nix
|
||||
./module/plugin/lsp/Go.nix
|
||||
./module/plugin/lsp/Haskell.nix
|
||||
./module/plugin/lsp/Lua.nix
|
||||
./module/plugin/lsp/Nix.nix
|
||||
./module/plugin/lsp/Rust.nix
|
||||
./module/plugin/lsp/Tex.nix
|
||||
./module/plugin/lsp/Nix.nix
|
||||
./module/key/Autocomplete.nix
|
||||
./module/key/Buffer.nix
|
||||
./module/key/Cmd.nix
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
{ ... }:
|
||||
{
|
||||
text = ''
|
||||
-- Disable error messages.
|
||||
-- Disable error messages popup.
|
||||
-- Instead write them to /tmp/NeovimError<PID>.txt
|
||||
vim.notify = function(msg, log_level, opts)
|
||||
return
|
||||
local pid = vim.fn.getpid()
|
||||
local file = io.open("/tmp/NeovimError"..tostring(pid)..".txt", "a")
|
||||
file:write(msg.."\n")
|
||||
file:close()
|
||||
end
|
||||
'';
|
||||
}
|
||||
|
|
8
home/config/nvim/module/plugin/lsp/Go.nix
Normal file
8
home/config/nvim/module/plugin/lsp/Go.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
text = ''
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
lspconfig.gopls.setup {}
|
||||
'';
|
||||
}
|
8
home/config/nvim/module/plugin/lsp/Lua.nix
Normal file
8
home/config/nvim/module/plugin/lsp/Lua.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
text = ''
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
lspconfig.lua_ls.setup {}
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue