format with nixfmt
This commit is contained in:
parent
89382ce25e
commit
9c77d8a217
22 changed files with 847 additions and 826 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
colorschemes.gruvbox ={
|
||||
colorschemes.gruvbox = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@
|
|||
};
|
||||
extraConfigLua = ''
|
||||
----------------------------------
|
||||
-- START custom setup for onedark
|
||||
----------------------------------
|
||||
-- https://github.com/navarasu/onedark.nvim
|
||||
require('onedark').setup {
|
||||
-- START custom setup for onedark
|
||||
----------------------------------
|
||||
-- https://github.com/navarasu/onedark.nvim
|
||||
require('onedark').setup {
|
||||
-- Main options --
|
||||
style = 'darker', -- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light'
|
||||
transparent = true, -- Show/hide background
|
||||
|
|
@ -47,13 +47,12 @@ require('onedark').setup {
|
|||
undercurl = true, -- use undercurl instead of underline for diagnostics
|
||||
background = true, -- use background color for virtual text
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
require('onedark').load()
|
||||
----------------------------------
|
||||
-- END custom setup for onedark
|
||||
----------------------------------
|
||||
'';
|
||||
|
||||
}
|
||||
|
||||
|
||||
require('onedark').load()
|
||||
----------------------------------
|
||||
-- END custom setup for onedark
|
||||
----------------------------------
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
# The line beneath this is called `modeline`. See `:help modeline`
|
||||
# vim: ts=4:sts=0:sw=0:tw=78:noet
|
||||
{
|
||||
# Import all your configuration modules here
|
||||
imports = [
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
# The line beneath this is called `modeline`. See `:help modeline`
|
||||
# vim: ts=4:sts=0:sw=0:tw=78:noet
|
||||
{
|
||||
keymaps = [
|
||||
{
|
||||
# vim.keymap.set({ "n", "v" }, "\\y", '"+y', {noremap=true, silent=true})
|
||||
mode = [ "n" "v" ];
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
];
|
||||
key = "\\y";
|
||||
action = "\"+y";
|
||||
options = {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
{ pkgs
|
||||
, ...}:{
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
vim-rhubarb
|
||||
];
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
extraPlugins = with pkgs.vimPlugins; [ vim-rhubarb ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
{ pkgs
|
||||
, ...}:{
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
vim-sleuth
|
||||
];
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
extraPlugins = with pkgs.vimPlugins; [ vim-sleuth ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,24 +5,40 @@
|
|||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = [ "n" "x" "o" ];
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
"o"
|
||||
];
|
||||
key = "<leader>ss";
|
||||
action = "function() require('leap').leap {} end";
|
||||
lua = true;
|
||||
# action = "require('leap').leap";
|
||||
}
|
||||
{
|
||||
mode = [ "n" "x" "o" ];
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
"o"
|
||||
];
|
||||
key = "<leader>sS";
|
||||
action = "<Plug>(leap-backward-to)";
|
||||
}
|
||||
{
|
||||
mode = [ "n" "x" "o" ];
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
"o"
|
||||
];
|
||||
key = "<leader>sx";
|
||||
action = "<Plug>(leap-forward-till)";
|
||||
}
|
||||
{
|
||||
mode = [ "n" "x" "o" ];
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
"o"
|
||||
];
|
||||
key = "<leader>sX";
|
||||
action = "<Plug>(leap-backward-till)";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,9 @@
|
|||
# };
|
||||
# };
|
||||
};
|
||||
clangd = {enable = true;};
|
||||
clangd = {
|
||||
enable = true;
|
||||
};
|
||||
lua-ls = {
|
||||
enable = true;
|
||||
extraOptions = {
|
||||
|
|
@ -71,15 +73,24 @@
|
|||
telemetry = {
|
||||
enabled = false;
|
||||
};
|
||||
hint = {enable = true;};
|
||||
hint = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
nil_ls = {enable = true;};
|
||||
};
|
||||
nil_ls = {
|
||||
enable = true;
|
||||
};
|
||||
tsserver = {
|
||||
enable = false;
|
||||
filetypes = ["javascript" "javascriptreact" "typescript" "typescriptreact"];
|
||||
filetypes = [
|
||||
"javascript"
|
||||
"javascriptreact"
|
||||
"typescript"
|
||||
"typescriptreact"
|
||||
];
|
||||
extraOptions = {
|
||||
settings = {
|
||||
javascript = {
|
||||
|
|
@ -107,9 +118,15 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
eslint = {enable = true;};
|
||||
pyright = {enable = true;};
|
||||
ruff-lsp = {enable = true;};
|
||||
eslint = {
|
||||
enable = true;
|
||||
};
|
||||
pyright = {
|
||||
enable = true;
|
||||
};
|
||||
ruff-lsp = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
rust-analyzer = {
|
||||
enable = true;
|
||||
|
|
@ -224,13 +241,13 @@
|
|||
|
||||
|
||||
|
||||
------------------------------
|
||||
-- START texmagic, texlab
|
||||
------------------------------
|
||||
-- Below this one line is for texmagic only
|
||||
-- vim.g['tex_flavor'] = 'latex'
|
||||
------------------------------
|
||||
-- START texmagic, texlab
|
||||
------------------------------
|
||||
-- Below this one line is for texmagic only
|
||||
-- vim.g['tex_flavor'] = 'latex'
|
||||
|
||||
require('lspconfig').texlab.setup{
|
||||
require('lspconfig').texlab.setup{
|
||||
cmd = {"texlab"},
|
||||
filetypes = {"tex", "plaintex", "bib"},
|
||||
single_file_support = true,
|
||||
|
|
@ -294,18 +311,18 @@ require('lspconfig').texlab.setup{
|
|||
diagnosticsDelay = 300,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-- compile laTeX keymap
|
||||
vim.keymap.set('n', '<leader>l', ':TexlabBuild<CR>' )
|
||||
-- forwardSearch
|
||||
vim.keymap.set('n', '<leader>k', ':TexlabForward<CR>' )
|
||||
-- if lsp failed to start, start manually
|
||||
vim.keymap.set('n', '<leader>j', ':LspStart<CR>' )
|
||||
-- compile laTeX keymap
|
||||
vim.keymap.set('n', '<leader>l', ':TexlabBuild<CR>' )
|
||||
-- forwardSearch
|
||||
vim.keymap.set('n', '<leader>k', ':TexlabForward<CR>' )
|
||||
-- if lsp failed to start, start manually
|
||||
vim.keymap.set('n', '<leader>j', ':LspStart<CR>' )
|
||||
|
||||
------------------------------
|
||||
-- END texmagic, texlab
|
||||
------------------------------
|
||||
------------------------------
|
||||
-- END texmagic, texlab
|
||||
------------------------------
|
||||
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
# vim: ts=4:sts=0:sw=0:noet
|
||||
{
|
||||
pkgs
|
||||
, pkgs-stable
|
||||
, ... }:
|
||||
{ pkgs, pkgs-stable, ... }:
|
||||
{
|
||||
plugins = {
|
||||
neorg = {
|
||||
|
|
@ -10,15 +6,15 @@ pkgs
|
|||
# package = pkgs-stable.vimPlugins.neorg;
|
||||
package = pkgs.vimPlugins.neorg;
|
||||
modules = {
|
||||
"core.defaults" = {}; # -- Loads default behaviour
|
||||
"core.summary" = {};
|
||||
"core.export" = {};
|
||||
"core.export.markdown" = {};
|
||||
"core.defaults" = { }; # -- Loads default behaviour
|
||||
"core.summary" = { };
|
||||
"core.export" = { };
|
||||
"core.export.markdown" = { };
|
||||
"core.concealer" = {
|
||||
config = {
|
||||
folds = false;
|
||||
};
|
||||
}; #-- Adds pretty icons to your documents
|
||||
}; # -- Adds pretty icons to your documents
|
||||
"core.dirman" = {
|
||||
config = {
|
||||
workspaces = {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
# The line beneath this is called `modeline`. See `:help modeline`
|
||||
# vim: ts=4:sts=0:sw=0:noet
|
||||
{
|
||||
config = {
|
||||
globals = {
|
||||
|
|
@ -25,7 +23,7 @@
|
|||
smartindent = false;
|
||||
# length to use when shifting text (eg. <<, >> and == commands)
|
||||
|
||||
tabstop=4;
|
||||
tabstop = 4;
|
||||
shiftwidth = 0;
|
||||
|
||||
expandtab = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue