extra: nvim: add typos-lsp, enable spell checking by default
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
249cf3f640
commit
59c4b89fd1
|
@ -154,7 +154,7 @@ end
|
|||
setupLuaSnip()
|
||||
|
||||
-- f3fora/cmp-spell
|
||||
vim.opt.spell = false
|
||||
vim.opt.spell = true
|
||||
vim.opt.spelllang = 'en_us'
|
||||
vim.keymap.set('n', '<leader>p', '<cmd>set spell!<cr>')
|
||||
|
||||
|
@ -320,6 +320,10 @@ lspconfig.java_language_server.setup({
|
|||
},
|
||||
})
|
||||
|
||||
lspconfig.typos_lsp.setup({
|
||||
init_options = { diagnosticSeverity = 'hint' },
|
||||
})
|
||||
|
||||
-- hrsh7th/nvim-cmp
|
||||
local cmp = require('cmp')
|
||||
cmp.setup({
|
||||
|
@ -346,7 +350,7 @@ cmp.setup({
|
|||
{ name = 'nvim_lsp_signature_help' },
|
||||
{ name = 'luasnip' },
|
||||
{ name = 'crates' },
|
||||
{ name = 'spell', option = { keep_all_entries = true } },
|
||||
{ name = 'spell' },
|
||||
}, {
|
||||
{ name = 'buffer' },
|
||||
}),
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
home = rec {
|
||||
username = "cheiss";
|
||||
homeDirectory = "/home/${username}";
|
||||
packages = (with pkgs; [ rust-analyzer sipcalc swaks ])
|
||||
packages =
|
||||
(with pkgs; [ rust-analyzer samply sipcalc swaks typos typos-lsp ])
|
||||
++ (with pkgs.nodePackages; [ bash-language-server prettier ])
|
||||
++ (with pkgs.nixgl; [ nixGLIntel nixVulkanIntel ]);
|
||||
sessionVariables.NIX_PATH = "nixpkgs=${lib.cleanSource pkgs.path}";
|
||||
|
@ -24,7 +25,7 @@
|
|||
programs.git.signing.signByDefault = false;
|
||||
|
||||
# Nix's swaylock is broken when using on Debian due to some PAM
|
||||
# incompatibilites. Work around that by simply running Debians
|
||||
# incompatibilities. Work around that by simply running Debians
|
||||
# `swaylock`.
|
||||
programs.swaylock.package = pkgs.writeShellScriptBin "swaylock" ''
|
||||
exec /usr/bin/swaylock
|
||||
|
|
Loading…
Reference in a new issue