add coc settings

This commit is contained in:
mehbark 2023-08-15 12:07:30 -04:00
parent 0b3a0c34ed
commit 223c8256db
3 changed files with 22 additions and 3 deletions

View file

@ -1,3 +1,3 @@
{ {
use-kde = false; use-kde = true;
} }

View file

@ -92,7 +92,6 @@ in
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true; # services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.mutableUsers = false; users.mutableUsers = false;
users.users.mbk = { users.users.mbk = {
isNormalUser = true; isNormalUser = true;
@ -124,7 +123,7 @@ in
# services.emacs.package = import /home/mbk/.emacs.d { pkgs = pkgs; }; # services.emacs.package = import /home/mbk/.emacs.d { pkgs = pkgs; };
# services.emacs.defaultEditor = true; # services.emacs.defaultEditor = true;
# Allow unfree packages # Allow unfree packages (sorry)
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:

View file

@ -45,6 +45,26 @@ in
programs.neovim = { programs.neovim = {
enable = true; enable = true;
coc.enable = true; coc.enable = true;
coc.settings = ''
{
"rust-analyzer.checkOnSave.command": "clippy",
"rust-analyzer.checkOnSave.extraArgs": ["-- -W clippy::pedantic"],
"languageserver": {
"ccls": {
"command": "ccls",
"filetypes": ["c", "cpp", "objc", "objcpp"],
"rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"],
"initializationOptions": {
"cache": {
"directory": "/tmp/ccls"
}
}
}
},
"inlayHint.enable": true,
"zig.zls.path": "/home/mbk/.config/coc/extensions/coc-zls-data/zls_install/zls"
}
'';
defaultEditor = true; defaultEditor = true;
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
vim-airline vim-airline