1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4361
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy. \n
I’ll see if I can have it work in NixOS.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706055951 {#4357
date: 2024-01-24 01:25:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4365 …}
+nested: Doctrine\ORM\PersistentCollection {#4367 …}
+votes: Doctrine\ORM\PersistentCollection {#4363 …}
+reports: Doctrine\ORM\PersistentCollection {#4369 …}
+favourites: Doctrine\ORM\PersistentCollection {#4371 …}
+notifications: Doctrine\ORM\PersistentCollection {#4373 …}
-id: 335573
-bodyTs: "'anymor':15 'feedback':4 'good':20 'lazi':25 'll':27 'm':6 'maintain':14 'may':17 'nixo':36 'packer':9 'see':28 'switch':23 'thank':1 'time':21 'use':7 'work':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7665167"
+editedAt: DateTimeImmutable @1728124688 {#4354
date: 2024-10-05 12:38:08.0 +02:00
}
+createdAt: DateTimeImmutable @1706055951 {#4358
date: 2024-01-24 01:25:51.0 +01:00
}
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
App\Entity\EntryComment {#4361
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy. \n
I’ll see if I can have it work in NixOS.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706055951 {#4357
date: 2024-01-24 01:25:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4365 …}
+nested: Doctrine\ORM\PersistentCollection {#4367 …}
+votes: Doctrine\ORM\PersistentCollection {#4363 …}
+reports: Doctrine\ORM\PersistentCollection {#4369 …}
+favourites: Doctrine\ORM\PersistentCollection {#4371 …}
+notifications: Doctrine\ORM\PersistentCollection {#4373 …}
-id: 335573
-bodyTs: "'anymor':15 'feedback':4 'good':20 'lazi':25 'll':27 'm':6 'maintain':14 'may':17 'nixo':36 'packer':9 'see':28 'switch':23 'thank':1 'time':21 'use':7 'work':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7665167"
+editedAt: DateTimeImmutable @1728124688 {#4354
date: 2024-10-05 12:38:08.0 +02:00
}
+createdAt: DateTimeImmutable @1706055951 {#4358
date: 2024-01-24 01:25:51.0 +01:00
}
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4361
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy. \n
I’ll see if I can have it work in NixOS.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706055951 {#4357
date: 2024-01-24 01:25:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4365 …}
+nested: Doctrine\ORM\PersistentCollection {#4367 …}
+votes: Doctrine\ORM\PersistentCollection {#4363 …}
+reports: Doctrine\ORM\PersistentCollection {#4369 …}
+favourites: Doctrine\ORM\PersistentCollection {#4371 …}
+notifications: Doctrine\ORM\PersistentCollection {#4373 …}
-id: 335573
-bodyTs: "'anymor':15 'feedback':4 'good':20 'lazi':25 'll':27 'm':6 'maintain':14 'may':17 'nixo':36 'packer':9 'see':28 'switch':23 'thank':1 'time':21 'use':7 'work':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7665167"
+editedAt: DateTimeImmutable @1728124688 {#4354
date: 2024-10-05 12:38:08.0 +02:00
}
+createdAt: DateTimeImmutable @1706055951 {#4358
date: 2024-01-24 01:25:51.0 +01:00
}
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4428
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4361
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy. \n
I’ll see if I can have it work in NixOS.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706055951 {#4357
date: 2024-01-24 01:25:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4365 …}
+nested: Doctrine\ORM\PersistentCollection {#4367 …}
+votes: Doctrine\ORM\PersistentCollection {#4363 …}
+reports: Doctrine\ORM\PersistentCollection {#4369 …}
+favourites: Doctrine\ORM\PersistentCollection {#4371 …}
+notifications: Doctrine\ORM\PersistentCollection {#4373 …}
-id: 335573
-bodyTs: "'anymor':15 'feedback':4 'good':20 'lazi':25 'll':27 'm':6 'maintain':14 'may':17 'nixo':36 'packer':9 'see':28 'switch':23 'thank':1 'time':21 'use':7 'work':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7665167"
+editedAt: DateTimeImmutable @1728124688 {#4354
date: 2024-10-05 12:38:08.0 +02:00
}
+createdAt: DateTimeImmutable @1706055951 {#4358
date: 2024-01-24 01:25:51.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: "It worked. Thanks! Just a question though: why is there instructions and all the packages in NixOS if it’s not yet reliable?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061983 {#4427
date: 2024-01-24 03:06:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4431 …}
+nested: Doctrine\ORM\PersistentCollection {#4436 …}
+votes: Doctrine\ORM\PersistentCollection {#4432 …}
+reports: Doctrine\ORM\PersistentCollection {#4438 …}
+favourites: Doctrine\ORM\PersistentCollection {#4440 …}
+notifications: Doctrine\ORM\PersistentCollection {#4442 …}
-id: 335735
-bodyTs: "'instruct':11 'nixo':17 'packag':15 'question':6 'reliabl':23 'thank':3 'though':7 'work':2 'yet':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7667965"
+editedAt: null
+createdAt: DateTimeImmutable @1706061983 {#4424
date: 2024-01-24 03:06:23.0 +01:00
}
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\EntryComment {#4428
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4361
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy. \n
I’ll see if I can have it work in NixOS.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706055951 {#4357
date: 2024-01-24 01:25:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4365 …}
+nested: Doctrine\ORM\PersistentCollection {#4367 …}
+votes: Doctrine\ORM\PersistentCollection {#4363 …}
+reports: Doctrine\ORM\PersistentCollection {#4369 …}
+favourites: Doctrine\ORM\PersistentCollection {#4371 …}
+notifications: Doctrine\ORM\PersistentCollection {#4373 …}
-id: 335573
-bodyTs: "'anymor':15 'feedback':4 'good':20 'lazi':25 'll':27 'm':6 'maintain':14 'may':17 'nixo':36 'packer':9 'see':28 'switch':23 'thank':1 'time':21 'use':7 'work':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7665167"
+editedAt: DateTimeImmutable @1728124688 {#4354
date: 2024-10-05 12:38:08.0 +02:00
}
+createdAt: DateTimeImmutable @1706055951 {#4358
date: 2024-01-24 01:25:51.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: "It worked. Thanks! Just a question though: why is there instructions and all the packages in NixOS if it’s not yet reliable?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061983 {#4427
date: 2024-01-24 03:06:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4431 …}
+nested: Doctrine\ORM\PersistentCollection {#4436 …}
+votes: Doctrine\ORM\PersistentCollection {#4432 …}
+reports: Doctrine\ORM\PersistentCollection {#4438 …}
+favourites: Doctrine\ORM\PersistentCollection {#4440 …}
+notifications: Doctrine\ORM\PersistentCollection {#4442 …}
-id: 335735
-bodyTs: "'instruct':11 'nixo':17 'packag':15 'question':6 'reliabl':23 'thank':3 'though':7 'work':2 'yet':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7667965"
+editedAt: null
+createdAt: DateTimeImmutable @1706061983 {#4424
date: 2024-01-24 03:06:23.0 +01:00
}
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4428
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4361
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy. \n
I’ll see if I can have it work in NixOS.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706055951 {#4357
date: 2024-01-24 01:25:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4365 …}
+nested: Doctrine\ORM\PersistentCollection {#4367 …}
+votes: Doctrine\ORM\PersistentCollection {#4363 …}
+reports: Doctrine\ORM\PersistentCollection {#4369 …}
+favourites: Doctrine\ORM\PersistentCollection {#4371 …}
+notifications: Doctrine\ORM\PersistentCollection {#4373 …}
-id: 335573
-bodyTs: "'anymor':15 'feedback':4 'good':20 'lazi':25 'll':27 'm':6 'maintain':14 'may':17 'nixo':36 'packer':9 'see':28 'switch':23 'thank':1 'time':21 'use':7 'work':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7665167"
+editedAt: DateTimeImmutable @1728124688 {#4354
date: 2024-10-05 12:38:08.0 +02:00
}
+createdAt: DateTimeImmutable @1706055951 {#4358
date: 2024-01-24 01:25:51.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: "It worked. Thanks! Just a question though: why is there instructions and all the packages in NixOS if it’s not yet reliable?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061983 {#4427
date: 2024-01-24 03:06:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4431 …}
+nested: Doctrine\ORM\PersistentCollection {#4436 …}
+votes: Doctrine\ORM\PersistentCollection {#4432 …}
+reports: Doctrine\ORM\PersistentCollection {#4438 …}
+favourites: Doctrine\ORM\PersistentCollection {#4440 …}
+notifications: Doctrine\ORM\PersistentCollection {#4442 …}
-id: 335735
-bodyTs: "'instruct':11 'nixo':17 'packag':15 'question':6 'reliabl':23 'thank':3 'though':7 'work':2 'yet':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7667965"
+editedAt: null
+createdAt: DateTimeImmutable @1706061983 {#4424
date: 2024-01-24 03:06:23.0 +01:00
}
} |
|
Show voter details
|
17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
18 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4459
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4428
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4361
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy. \n
I’ll see if I can have it work in NixOS.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706055951 {#4357
date: 2024-01-24 01:25:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4365 …}
+nested: Doctrine\ORM\PersistentCollection {#4367 …}
+votes: Doctrine\ORM\PersistentCollection {#4363 …}
+reports: Doctrine\ORM\PersistentCollection {#4369 …}
+favourites: Doctrine\ORM\PersistentCollection {#4371 …}
+notifications: Doctrine\ORM\PersistentCollection {#4373 …}
-id: 335573
-bodyTs: "'anymor':15 'feedback':4 'good':20 'lazi':25 'll':27 'm':6 'maintain':14 'may':17 'nixo':36 'packer':9 'see':28 'switch':23 'thank':1 'time':21 'use':7 'work':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7665167"
+editedAt: DateTimeImmutable @1728124688 {#4354
date: 2024-10-05 12:38:08.0 +02:00
}
+createdAt: DateTimeImmutable @1706055951 {#4358
date: 2024-01-24 01:25:51.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: "It worked. Thanks! Just a question though: why is there instructions and all the packages in NixOS if it’s not yet reliable?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061983 {#4427
date: 2024-01-24 03:06:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4431 …}
+nested: Doctrine\ORM\PersistentCollection {#4436 …}
+votes: Doctrine\ORM\PersistentCollection {#4432 …}
+reports: Doctrine\ORM\PersistentCollection {#4438 …}
+favourites: Doctrine\ORM\PersistentCollection {#4440 …}
+notifications: Doctrine\ORM\PersistentCollection {#4442 …}
-id: 335735
-bodyTs: "'instruct':11 'nixo':17 'packag':15 'question':6 'reliabl':23 'thank':3 'though':7 'work':2 'yet':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7667965"
+editedAt: null
+createdAt: DateTimeImmutable @1706061983 {#4424
date: 2024-01-24 03:06:23.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
I have no idea, from what I gather there aren’t all the packages\n
\n
I’m not sure what if anything installing them via nix does I’ve just come to the realisation it’s already declarative so why would people bother getting it working under nix
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706083323 {#4454
date: 2024-01-24 09:02:03.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4451 …}
+nested: Doctrine\ORM\PersistentCollection {#4448 …}
+votes: Doctrine\ORM\PersistentCollection {#4446 …}
+reports: Doctrine\ORM\PersistentCollection {#4460 …}
+favourites: Doctrine\ORM\PersistentCollection {#4462 …}
+notifications: Doctrine\ORM\PersistentCollection {#4464 …}
-id: 336212
-bodyTs: "'alreadi':36 'anyth':21 'aren':10 'bother':42 'come':30 'declar':37 'gather':8 'get':43 'idea':4 'instal':22 'm':16 'nix':25,47 'packag':14 'peopl':41 'realis':33 'sure':18 've':28 'via':24 'work':45 'would':40"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8599429"
+editedAt: null
+createdAt: DateTimeImmutable @1706083323 {#4457
date: 2024-01-24 09:02:03.0 +01:00
}
} |
|
Show voter details
|
19 |
DENIED
|
edit
|
App\Entity\EntryComment {#4459
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4428
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4361
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy. \n
I’ll see if I can have it work in NixOS.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706055951 {#4357
date: 2024-01-24 01:25:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4365 …}
+nested: Doctrine\ORM\PersistentCollection {#4367 …}
+votes: Doctrine\ORM\PersistentCollection {#4363 …}
+reports: Doctrine\ORM\PersistentCollection {#4369 …}
+favourites: Doctrine\ORM\PersistentCollection {#4371 …}
+notifications: Doctrine\ORM\PersistentCollection {#4373 …}
-id: 335573
-bodyTs: "'anymor':15 'feedback':4 'good':20 'lazi':25 'll':27 'm':6 'maintain':14 'may':17 'nixo':36 'packer':9 'see':28 'switch':23 'thank':1 'time':21 'use':7 'work':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7665167"
+editedAt: DateTimeImmutable @1728124688 {#4354
date: 2024-10-05 12:38:08.0 +02:00
}
+createdAt: DateTimeImmutable @1706055951 {#4358
date: 2024-01-24 01:25:51.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: "It worked. Thanks! Just a question though: why is there instructions and all the packages in NixOS if it’s not yet reliable?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061983 {#4427
date: 2024-01-24 03:06:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4431 …}
+nested: Doctrine\ORM\PersistentCollection {#4436 …}
+votes: Doctrine\ORM\PersistentCollection {#4432 …}
+reports: Doctrine\ORM\PersistentCollection {#4438 …}
+favourites: Doctrine\ORM\PersistentCollection {#4440 …}
+notifications: Doctrine\ORM\PersistentCollection {#4442 …}
-id: 335735
-bodyTs: "'instruct':11 'nixo':17 'packag':15 'question':6 'reliabl':23 'thank':3 'though':7 'work':2 'yet':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7667965"
+editedAt: null
+createdAt: DateTimeImmutable @1706061983 {#4424
date: 2024-01-24 03:06:23.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
I have no idea, from what I gather there aren’t all the packages\n
\n
I’m not sure what if anything installing them via nix does I’ve just come to the realisation it’s already declarative so why would people bother getting it working under nix
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706083323 {#4454
date: 2024-01-24 09:02:03.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4451 …}
+nested: Doctrine\ORM\PersistentCollection {#4448 …}
+votes: Doctrine\ORM\PersistentCollection {#4446 …}
+reports: Doctrine\ORM\PersistentCollection {#4460 …}
+favourites: Doctrine\ORM\PersistentCollection {#4462 …}
+notifications: Doctrine\ORM\PersistentCollection {#4464 …}
-id: 336212
-bodyTs: "'alreadi':36 'anyth':21 'aren':10 'bother':42 'come':30 'declar':37 'gather':8 'get':43 'idea':4 'instal':22 'm':16 'nix':25,47 'packag':14 'peopl':41 'realis':33 'sure':18 've':28 'via':24 'work':45 'would':40"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8599429"
+editedAt: null
+createdAt: DateTimeImmutable @1706083323 {#4457
date: 2024-01-24 09:02:03.0 +01:00
}
} |
|
Show voter details
|
20 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4459
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4428
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4361
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy. \n
I’ll see if I can have it work in NixOS.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706055951 {#4357
date: 2024-01-24 01:25:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4365 …}
+nested: Doctrine\ORM\PersistentCollection {#4367 …}
+votes: Doctrine\ORM\PersistentCollection {#4363 …}
+reports: Doctrine\ORM\PersistentCollection {#4369 …}
+favourites: Doctrine\ORM\PersistentCollection {#4371 …}
+notifications: Doctrine\ORM\PersistentCollection {#4373 …}
-id: 335573
-bodyTs: "'anymor':15 'feedback':4 'good':20 'lazi':25 'll':27 'm':6 'maintain':14 'may':17 'nixo':36 'packer':9 'see':28 'switch':23 'thank':1 'time':21 'use':7 'work':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7665167"
+editedAt: DateTimeImmutable @1728124688 {#4354
date: 2024-10-05 12:38:08.0 +02:00
}
+createdAt: DateTimeImmutable @1706055951 {#4358
date: 2024-01-24 01:25:51.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: "It worked. Thanks! Just a question though: why is there instructions and all the packages in NixOS if it’s not yet reliable?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061983 {#4427
date: 2024-01-24 03:06:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4431 …}
+nested: Doctrine\ORM\PersistentCollection {#4436 …}
+votes: Doctrine\ORM\PersistentCollection {#4432 …}
+reports: Doctrine\ORM\PersistentCollection {#4438 …}
+favourites: Doctrine\ORM\PersistentCollection {#4440 …}
+notifications: Doctrine\ORM\PersistentCollection {#4442 …}
-id: 335735
-bodyTs: "'instruct':11 'nixo':17 'packag':15 'question':6 'reliabl':23 'thank':3 'though':7 'work':2 'yet':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7667965"
+editedAt: null
+createdAt: DateTimeImmutable @1706061983 {#4424
date: 2024-01-24 03:06:23.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
I have no idea, from what I gather there aren’t all the packages\n
\n
I’m not sure what if anything installing them via nix does I’ve just come to the realisation it’s already declarative so why would people bother getting it working under nix
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706083323 {#4454
date: 2024-01-24 09:02:03.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4451 …}
+nested: Doctrine\ORM\PersistentCollection {#4448 …}
+votes: Doctrine\ORM\PersistentCollection {#4446 …}
+reports: Doctrine\ORM\PersistentCollection {#4460 …}
+favourites: Doctrine\ORM\PersistentCollection {#4462 …}
+notifications: Doctrine\ORM\PersistentCollection {#4464 …}
-id: 336212
-bodyTs: "'alreadi':36 'anyth':21 'aren':10 'bother':42 'come':30 'declar':37 'gather':8 'get':43 'idea':4 'instal':22 'm':16 'nix':25,47 'packag':14 'peopl':41 'realis':33 'sure':18 've':28 'via':24 'work':45 'would':40"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8599429"
+editedAt: null
+createdAt: DateTimeImmutable @1706083323 {#4457
date: 2024-01-24 09:02:03.0 +01:00
}
} |
|
Show voter details
|
21 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
22 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4468
+user: Proxies\__CG__\App\Entity\User {#4469 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4428
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4361
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy. \n
I’ll see if I can have it work in NixOS.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706055951 {#4357
date: 2024-01-24 01:25:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4365 …}
+nested: Doctrine\ORM\PersistentCollection {#4367 …}
+votes: Doctrine\ORM\PersistentCollection {#4363 …}
+reports: Doctrine\ORM\PersistentCollection {#4369 …}
+favourites: Doctrine\ORM\PersistentCollection {#4371 …}
+notifications: Doctrine\ORM\PersistentCollection {#4373 …}
-id: 335573
-bodyTs: "'anymor':15 'feedback':4 'good':20 'lazi':25 'll':27 'm':6 'maintain':14 'may':17 'nixo':36 'packer':9 'see':28 'switch':23 'thank':1 'time':21 'use':7 'work':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7665167"
+editedAt: DateTimeImmutable @1728124688 {#4354
date: 2024-10-05 12:38:08.0 +02:00
}
+createdAt: DateTimeImmutable @1706055951 {#4358
date: 2024-01-24 01:25:51.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: "It worked. Thanks! Just a question though: why is there instructions and all the packages in NixOS if it’s not yet reliable?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061983 {#4427
date: 2024-01-24 03:06:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4431 …}
+nested: Doctrine\ORM\PersistentCollection {#4436 …}
+votes: Doctrine\ORM\PersistentCollection {#4432 …}
+reports: Doctrine\ORM\PersistentCollection {#4438 …}
+favourites: Doctrine\ORM\PersistentCollection {#4440 …}
+notifications: Doctrine\ORM\PersistentCollection {#4442 …}
-id: 335735
-bodyTs: "'instruct':11 'nixo':17 'packag':15 'question':6 'reliabl':23 'thank':3 'though':7 'work':2 'yet':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7667965"
+editedAt: null
+createdAt: DateTimeImmutable @1706061983 {#4424
date: 2024-01-24 03:06:23.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
As other comments point out, they are usually not properly packaged through nix.\n
\n
If you read [the `vim/plugins` modules](https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/editors/vim/plugins), for most plugins, the derivation just downloads the plugin, puts it to `nix-store`, and makes it available to the editor through environment variables. So it’s similar to the binary distributed software. Two most notable restrictions:\n
\n
1. Nix is not aware of transient dependencies.\n
2. The plugin is not aware of the `nix-store` model.\n
\n
So for plugins that don’t have external dependencies (or dependencies other than the “common” ones like python or sh that happen to be available), and that don’t interact with the filesystems, this approach would be fine, but the more complex ones would fail.\n
\n
In your example, `mason` failed because of 1, home-manager wasn’t aware that the `pip` module is a transient dependency of this plugin; and `treesitter` failed because of 2, because it doesn’t know that `nix-store` is read-only and should be managed by `nix`.\n
\n
There are no general solutions, but people may have nixified some plugins on a case-by-case basis. If you don’t want to spend a lot of time (and remember that it might be broken by the next plugin upgrade), as others have suggested, take the traditional plugin management approach. (Personally, I use [LunarVim](https://www.lunarvim.org/) which uses `Lazy.nvim` and it’s been working fine.)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706096975 {#4466
date: 2024-01-24 12:49:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4470 …}
+nested: Doctrine\ORM\PersistentCollection {#4472 …}
+votes: Doctrine\ORM\PersistentCollection {#4474 …}
+reports: Doctrine\ORM\PersistentCollection {#4476 …}
+favourites: Doctrine\ORM\PersistentCollection {#4478 …}
+notifications: Doctrine\ORM\PersistentCollection {#4480 …}
-id: 336451
-bodyTs: "'/)':234 '/nixos/nixpkgs/tree/master/pkgs/applications/editors/vim/plugins),':22 '1':61,133 '2':69,156 'approach':115,227 'avail':41,105 'awar':65,74,139 'basi':194 'binari':54 'broken':212 'case':191,193 'case-by-cas':190 'comment':3 'common':95 'complex':122 'depend':68,89,91,147 'deriv':27 'distribut':55 'doesn':159 'download':29 'editor':44 'environ':46 'exampl':128 'extern':88 'fail':125,130,153 'filesystem':113 'fine':118,243 'general':179 'github.com':21 'github.com/nixos/nixpkgs/tree/master/pkgs/applications/editors/vim/plugins),':20 'happen':102 'home':135 'home-manag':134 'interact':110 'know':161 'lazy.nvim':237 'like':97 'lot':203 'lunarvim':231 'make':39 'manag':136,173,226 'mason':129 'may':183 'might':210 'model':80 'modul':19,143 'next':215 'nix':13,36,62,78,164,175 'nix-stor':35,77,163 'nixifi':185 'notabl':59 'one':96,123 'other':219 'packag':11 'peopl':182 'person':228 'pip':142 'plugin':25,31,71,83,150,187,216,225 'point':4 'proper':10 'put':32 'python':98 'read':16,168 'read-on':167 'rememb':207 'restrict':60 'sh':100 'similar':51 'softwar':56 'solut':180 'spend':201 'store':37,79,165 'suggest':221 'take':222 'time':205 'tradit':224 'transient':67,146 'treesitt':152 'two':57 'upgrad':217 'use':230,236 'usual':8 'variabl':47 'vim/plugins':18 'want':199 'wasn':137 'work':242 'would':116,124 'www.lunarvim.org':233 'www.lunarvim.org/)':232"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6970158"
+editedAt: null
+createdAt: DateTimeImmutable @1706096975 {#4467
date: 2024-01-24 12:49:35.0 +01:00
}
} |
|
Show voter details
|
23 |
DENIED
|
edit
|
App\Entity\EntryComment {#4468
+user: Proxies\__CG__\App\Entity\User {#4469 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4428
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4361
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy. \n
I’ll see if I can have it work in NixOS.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706055951 {#4357
date: 2024-01-24 01:25:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4365 …}
+nested: Doctrine\ORM\PersistentCollection {#4367 …}
+votes: Doctrine\ORM\PersistentCollection {#4363 …}
+reports: Doctrine\ORM\PersistentCollection {#4369 …}
+favourites: Doctrine\ORM\PersistentCollection {#4371 …}
+notifications: Doctrine\ORM\PersistentCollection {#4373 …}
-id: 335573
-bodyTs: "'anymor':15 'feedback':4 'good':20 'lazi':25 'll':27 'm':6 'maintain':14 'may':17 'nixo':36 'packer':9 'see':28 'switch':23 'thank':1 'time':21 'use':7 'work':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7665167"
+editedAt: DateTimeImmutable @1728124688 {#4354
date: 2024-10-05 12:38:08.0 +02:00
}
+createdAt: DateTimeImmutable @1706055951 {#4358
date: 2024-01-24 01:25:51.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: "It worked. Thanks! Just a question though: why is there instructions and all the packages in NixOS if it’s not yet reliable?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061983 {#4427
date: 2024-01-24 03:06:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4431 …}
+nested: Doctrine\ORM\PersistentCollection {#4436 …}
+votes: Doctrine\ORM\PersistentCollection {#4432 …}
+reports: Doctrine\ORM\PersistentCollection {#4438 …}
+favourites: Doctrine\ORM\PersistentCollection {#4440 …}
+notifications: Doctrine\ORM\PersistentCollection {#4442 …}
-id: 335735
-bodyTs: "'instruct':11 'nixo':17 'packag':15 'question':6 'reliabl':23 'thank':3 'though':7 'work':2 'yet':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7667965"
+editedAt: null
+createdAt: DateTimeImmutable @1706061983 {#4424
date: 2024-01-24 03:06:23.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
As other comments point out, they are usually not properly packaged through nix.\n
\n
If you read [the `vim/plugins` modules](https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/editors/vim/plugins), for most plugins, the derivation just downloads the plugin, puts it to `nix-store`, and makes it available to the editor through environment variables. So it’s similar to the binary distributed software. Two most notable restrictions:\n
\n
1. Nix is not aware of transient dependencies.\n
2. The plugin is not aware of the `nix-store` model.\n
\n
So for plugins that don’t have external dependencies (or dependencies other than the “common” ones like python or sh that happen to be available), and that don’t interact with the filesystems, this approach would be fine, but the more complex ones would fail.\n
\n
In your example, `mason` failed because of 1, home-manager wasn’t aware that the `pip` module is a transient dependency of this plugin; and `treesitter` failed because of 2, because it doesn’t know that `nix-store` is read-only and should be managed by `nix`.\n
\n
There are no general solutions, but people may have nixified some plugins on a case-by-case basis. If you don’t want to spend a lot of time (and remember that it might be broken by the next plugin upgrade), as others have suggested, take the traditional plugin management approach. (Personally, I use [LunarVim](https://www.lunarvim.org/) which uses `Lazy.nvim` and it’s been working fine.)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706096975 {#4466
date: 2024-01-24 12:49:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4470 …}
+nested: Doctrine\ORM\PersistentCollection {#4472 …}
+votes: Doctrine\ORM\PersistentCollection {#4474 …}
+reports: Doctrine\ORM\PersistentCollection {#4476 …}
+favourites: Doctrine\ORM\PersistentCollection {#4478 …}
+notifications: Doctrine\ORM\PersistentCollection {#4480 …}
-id: 336451
-bodyTs: "'/)':234 '/nixos/nixpkgs/tree/master/pkgs/applications/editors/vim/plugins),':22 '1':61,133 '2':69,156 'approach':115,227 'avail':41,105 'awar':65,74,139 'basi':194 'binari':54 'broken':212 'case':191,193 'case-by-cas':190 'comment':3 'common':95 'complex':122 'depend':68,89,91,147 'deriv':27 'distribut':55 'doesn':159 'download':29 'editor':44 'environ':46 'exampl':128 'extern':88 'fail':125,130,153 'filesystem':113 'fine':118,243 'general':179 'github.com':21 'github.com/nixos/nixpkgs/tree/master/pkgs/applications/editors/vim/plugins),':20 'happen':102 'home':135 'home-manag':134 'interact':110 'know':161 'lazy.nvim':237 'like':97 'lot':203 'lunarvim':231 'make':39 'manag':136,173,226 'mason':129 'may':183 'might':210 'model':80 'modul':19,143 'next':215 'nix':13,36,62,78,164,175 'nix-stor':35,77,163 'nixifi':185 'notabl':59 'one':96,123 'other':219 'packag':11 'peopl':182 'person':228 'pip':142 'plugin':25,31,71,83,150,187,216,225 'point':4 'proper':10 'put':32 'python':98 'read':16,168 'read-on':167 'rememb':207 'restrict':60 'sh':100 'similar':51 'softwar':56 'solut':180 'spend':201 'store':37,79,165 'suggest':221 'take':222 'time':205 'tradit':224 'transient':67,146 'treesitt':152 'two':57 'upgrad':217 'use':230,236 'usual':8 'variabl':47 'vim/plugins':18 'want':199 'wasn':137 'work':242 'would':116,124 'www.lunarvim.org':233 'www.lunarvim.org/)':232"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6970158"
+editedAt: null
+createdAt: DateTimeImmutable @1706096975 {#4467
date: 2024-01-24 12:49:35.0 +01:00
}
} |
|
Show voter details
|
24 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4468
+user: Proxies\__CG__\App\Entity\User {#4469 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4428
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4361
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4087
+user: App\Entity\User {#4035 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Have tried this myself and never had much luck trying to install nvim plugins via nix.\n
\n
I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go\n
\n
As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1728283540 {#4096
date: 2024-10-07 08:45:40.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4085 …}
+nested: Doctrine\ORM\PersistentCollection {#4083 …}
+votes: Doctrine\ORM\PersistentCollection {#4081 …}
+reports: Doctrine\ORM\PersistentCollection {#4079 …}
+favourites: Doctrine\ORM\PersistentCollection {#4047 …}
+notifications: Doctrine\ORM\PersistentCollection {#4051 …}
-id: 335559
-bodyTs: "'anyway':51 'appli':39 'away':62 'best':21 'built':30 'config/nvim':60 'day':91 'declar':50 'differ':79 'directori':58 'end':88 'fair':49 'found':19 'go':64 'home':54 'home-manag':53 'instal':12 'lazy.nvim':45 'luck':9 'm':34 'manag':29,55,82 'mani':78 'map':56 'much':8 'neovim':32,80 'never':6 'nix':16 'note':68 'nvim':13 'packag':81 'plugin':14,28 'rather':74 'seem':46 'side':67 'silli':75 'similar':99 'sure':36 'thing':96 'think':71 'though':69 'tri':2,10 'use':26 've':18 'via':15 'way':22,100"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemm.ee/comment/8585796"
+editedAt: null
+createdAt: DateTimeImmutable @1706055521 {#4032
date: 2024-01-24 01:18:41.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy. \n
I’ll see if I can have it work in NixOS.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706055951 {#4357
date: 2024-01-24 01:25:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4365 …}
+nested: Doctrine\ORM\PersistentCollection {#4367 …}
+votes: Doctrine\ORM\PersistentCollection {#4363 …}
+reports: Doctrine\ORM\PersistentCollection {#4369 …}
+favourites: Doctrine\ORM\PersistentCollection {#4371 …}
+notifications: Doctrine\ORM\PersistentCollection {#4373 …}
-id: 335573
-bodyTs: "'anymor':15 'feedback':4 'good':20 'lazi':25 'll':27 'm':6 'maintain':14 'may':17 'nixo':36 'packer':9 'see':28 'switch':23 'thank':1 'time':21 'use':7 'work':34"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7665167"
+editedAt: DateTimeImmutable @1728124688 {#4354
date: 2024-10-05 12:38:08.0 +02:00
}
+createdAt: DateTimeImmutable @1706055951 {#4358
date: 2024-01-24 01:25:51.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: "It worked. Thanks! Just a question though: why is there instructions and all the packages in NixOS if it’s not yet reliable?"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061983 {#4427
date: 2024-01-24 03:06:23.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4431 …}
+nested: Doctrine\ORM\PersistentCollection {#4436 …}
+votes: Doctrine\ORM\PersistentCollection {#4432 …}
+reports: Doctrine\ORM\PersistentCollection {#4438 …}
+favourites: Doctrine\ORM\PersistentCollection {#4440 …}
+notifications: Doctrine\ORM\PersistentCollection {#4442 …}
-id: 335735
-bodyTs: "'instruct':11 'nixo':17 'packag':15 'question':6 'reliabl':23 'thank':3 'though':7 'work':2 'yet':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7667965"
+editedAt: null
+createdAt: DateTimeImmutable @1706061983 {#4424
date: 2024-01-24 03:06:23.0 +01:00
}
}
+root: App\Entity\EntryComment {#4087}
+body: """
As other comments point out, they are usually not properly packaged through nix.\n
\n
If you read [the `vim/plugins` modules](https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/editors/vim/plugins), for most plugins, the derivation just downloads the plugin, puts it to `nix-store`, and makes it available to the editor through environment variables. So it’s similar to the binary distributed software. Two most notable restrictions:\n
\n
1. Nix is not aware of transient dependencies.\n
2. The plugin is not aware of the `nix-store` model.\n
\n
So for plugins that don’t have external dependencies (or dependencies other than the “common” ones like python or sh that happen to be available), and that don’t interact with the filesystems, this approach would be fine, but the more complex ones would fail.\n
\n
In your example, `mason` failed because of 1, home-manager wasn’t aware that the `pip` module is a transient dependency of this plugin; and `treesitter` failed because of 2, because it doesn’t know that `nix-store` is read-only and should be managed by `nix`.\n
\n
There are no general solutions, but people may have nixified some plugins on a case-by-case basis. If you don’t want to spend a lot of time (and remember that it might be broken by the next plugin upgrade), as others have suggested, take the traditional plugin management approach. (Personally, I use [LunarVim](https://www.lunarvim.org/) which uses `Lazy.nvim` and it’s been working fine.)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706096975 {#4466
date: 2024-01-24 12:49:35.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash@lemm.ee"
]
+children: Doctrine\ORM\PersistentCollection {#4470 …}
+nested: Doctrine\ORM\PersistentCollection {#4472 …}
+votes: Doctrine\ORM\PersistentCollection {#4474 …}
+reports: Doctrine\ORM\PersistentCollection {#4476 …}
+favourites: Doctrine\ORM\PersistentCollection {#4478 …}
+notifications: Doctrine\ORM\PersistentCollection {#4480 …}
-id: 336451
-bodyTs: "'/)':234 '/nixos/nixpkgs/tree/master/pkgs/applications/editors/vim/plugins),':22 '1':61,133 '2':69,156 'approach':115,227 'avail':41,105 'awar':65,74,139 'basi':194 'binari':54 'broken':212 'case':191,193 'case-by-cas':190 'comment':3 'common':95 'complex':122 'depend':68,89,91,147 'deriv':27 'distribut':55 'doesn':159 'download':29 'editor':44 'environ':46 'exampl':128 'extern':88 'fail':125,130,153 'filesystem':113 'fine':118,243 'general':179 'github.com':21 'github.com/nixos/nixpkgs/tree/master/pkgs/applications/editors/vim/plugins),':20 'happen':102 'home':135 'home-manag':134 'interact':110 'know':161 'lazy.nvim':237 'like':97 'lot':203 'lunarvim':231 'make':39 'manag':136,173,226 'mason':129 'may':183 'might':210 'model':80 'modul':19,143 'next':215 'nix':13,36,62,78,164,175 'nix-stor':35,77,163 'nixifi':185 'notabl':59 'one':96,123 'other':219 'packag':11 'peopl':182 'person':228 'pip':142 'plugin':25,31,71,83,150,187,216,225 'point':4 'proper':10 'put':32 'python':98 'read':16,168 'read-on':167 'rememb':207 'restrict':60 'sh':100 'similar':51 'softwar':56 'solut':180 'spend':201 'store':37,79,165 'suggest':221 'take':222 'time':205 'tradit':224 'transient':67,146 'treesitt':152 'two':57 'upgrad':217 'use':230,236 'usual':8 'variabl':47 'vim/plugins':18 'want':199 'wasn':137 'work':242 'would':116,124 'www.lunarvim.org':233 'www.lunarvim.org/)':232"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6970158"
+editedAt: null
+createdAt: DateTimeImmutable @1706096975 {#4467
date: 2024-01-24 12:49:35.0 +01:00
}
} |
|
Show voter details
|
25 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
26 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4119
+user: App\Entity\User {#4108 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
For your treesitter issue\n
\n
[github.com/clvx/nix-files/…/nvim-treesitter.lua#L…](https://github.com/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#L2)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1728162936 {#4125
date: 2024-10-05 23:15:36.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4124 …}
+nested: Doctrine\ORM\PersistentCollection {#4123 …}
+votes: Doctrine\ORM\PersistentCollection {#4114 …}
+reports: Doctrine\ORM\PersistentCollection {#4117 …}
+favourites: Doctrine\ORM\PersistentCollection {#4112 …}
+notifications: Doctrine\ORM\PersistentCollection {#4110 …}
-id: 335809
-bodyTs: "'/clvx/nix-files/':7 '/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#l2)':12 '/nvim-treesitter.lua':8 'github.com':6,11 'github.com/clvx/nix-files/':5 'github.com/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#l2)':10 'issu':4 'l':9 'treesitt':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7669906"
+editedAt: null
+createdAt: DateTimeImmutable @1706065799 {#4130
date: 2024-01-24 04:09:59.0 +01:00
}
} |
|
Show voter details
|
27 |
DENIED
|
edit
|
App\Entity\EntryComment {#4119
+user: App\Entity\User {#4108 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
For your treesitter issue\n
\n
[github.com/clvx/nix-files/…/nvim-treesitter.lua#L…](https://github.com/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#L2)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1728162936 {#4125
date: 2024-10-05 23:15:36.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4124 …}
+nested: Doctrine\ORM\PersistentCollection {#4123 …}
+votes: Doctrine\ORM\PersistentCollection {#4114 …}
+reports: Doctrine\ORM\PersistentCollection {#4117 …}
+favourites: Doctrine\ORM\PersistentCollection {#4112 …}
+notifications: Doctrine\ORM\PersistentCollection {#4110 …}
-id: 335809
-bodyTs: "'/clvx/nix-files/':7 '/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#l2)':12 '/nvim-treesitter.lua':8 'github.com':6,11 'github.com/clvx/nix-files/':5 'github.com/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#l2)':10 'issu':4 'l':9 'treesitt':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7669906"
+editedAt: null
+createdAt: DateTimeImmutable @1706065799 {#4130
date: 2024-01-24 04:09:59.0 +01:00
}
} |
|
Show voter details
|
28 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4119
+user: App\Entity\User {#4108 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
For your treesitter issue\n
\n
[github.com/clvx/nix-files/…/nvim-treesitter.lua#L…](https://github.com/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#L2)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1728162936 {#4125
date: 2024-10-05 23:15:36.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4124 …}
+nested: Doctrine\ORM\PersistentCollection {#4123 …}
+votes: Doctrine\ORM\PersistentCollection {#4114 …}
+reports: Doctrine\ORM\PersistentCollection {#4117 …}
+favourites: Doctrine\ORM\PersistentCollection {#4112 …}
+notifications: Doctrine\ORM\PersistentCollection {#4110 …}
-id: 335809
-bodyTs: "'/clvx/nix-files/':7 '/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#l2)':12 '/nvim-treesitter.lua':8 'github.com':6,11 'github.com/clvx/nix-files/':5 'github.com/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#l2)':10 'issu':4 'l':9 'treesitt':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7669906"
+editedAt: null
+createdAt: DateTimeImmutable @1706065799 {#4130
date: 2024-01-24 04:09:59.0 +01:00
}
} |
|
Show voter details
|
29 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
30 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4377
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4108 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
For your treesitter issue\n
\n
[github.com/clvx/nix-files/…/nvim-treesitter.lua#L…](https://github.com/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#L2)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1728162936 {#4125
date: 2024-10-05 23:15:36.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4124 …}
+nested: Doctrine\ORM\PersistentCollection {#4123 …}
+votes: Doctrine\ORM\PersistentCollection {#4114 …}
+reports: Doctrine\ORM\PersistentCollection {#4117 …}
+favourites: Doctrine\ORM\PersistentCollection {#4112 …}
+notifications: Doctrine\ORM\PersistentCollection {#4110 …}
-id: 335809
-bodyTs: "'/clvx/nix-files/':7 '/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#l2)':12 '/nvim-treesitter.lua':8 'github.com':6,11 'github.com/clvx/nix-files/':5 'github.com/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#l2)':10 'issu':4 'l':9 'treesitt':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7669906"
+editedAt: null
+createdAt: DateTimeImmutable @1706065799 {#4130
date: 2024-01-24 04:09:59.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: "Thank you for your help. I ended up using the approach proposed by @flashgnash (*i.e.* using lazy.vim) which let me install neovim and all my plugins."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706068071 {#4375
date: 2024-01-24 04:47:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash"
"@clvx@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4378 …}
+nested: Doctrine\ORM\PersistentCollection {#4380 …}
+votes: Doctrine\ORM\PersistentCollection {#4382 …}
+reports: Doctrine\ORM\PersistentCollection {#4384 …}
+favourites: Doctrine\ORM\PersistentCollection {#4386 …}
+notifications: Doctrine\ORM\PersistentCollection {#4388 …}
-id: 335873
-bodyTs: "'approach':11 'end':7 'flashgnash':14 'help':5 'i.e':15 'instal':21 'lazy.vim':17 'let':19 'neovim':22 'plugin':26 'propos':12 'thank':1 'use':9,16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7671081"
+editedAt: null
+createdAt: DateTimeImmutable @1706068071 {#4376
date: 2024-01-24 04:47:51.0 +01:00
}
} |
|
Show voter details
|
31 |
DENIED
|
edit
|
App\Entity\EntryComment {#4377
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4108 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
For your treesitter issue\n
\n
[github.com/clvx/nix-files/…/nvim-treesitter.lua#L…](https://github.com/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#L2)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1728162936 {#4125
date: 2024-10-05 23:15:36.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4124 …}
+nested: Doctrine\ORM\PersistentCollection {#4123 …}
+votes: Doctrine\ORM\PersistentCollection {#4114 …}
+reports: Doctrine\ORM\PersistentCollection {#4117 …}
+favourites: Doctrine\ORM\PersistentCollection {#4112 …}
+notifications: Doctrine\ORM\PersistentCollection {#4110 …}
-id: 335809
-bodyTs: "'/clvx/nix-files/':7 '/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#l2)':12 '/nvim-treesitter.lua':8 'github.com':6,11 'github.com/clvx/nix-files/':5 'github.com/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#l2)':10 'issu':4 'l':9 'treesitt':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7669906"
+editedAt: null
+createdAt: DateTimeImmutable @1706065799 {#4130
date: 2024-01-24 04:09:59.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: "Thank you for your help. I ended up using the approach proposed by @flashgnash (*i.e.* using lazy.vim) which let me install neovim and all my plugins."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706068071 {#4375
date: 2024-01-24 04:47:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash"
"@clvx@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4378 …}
+nested: Doctrine\ORM\PersistentCollection {#4380 …}
+votes: Doctrine\ORM\PersistentCollection {#4382 …}
+reports: Doctrine\ORM\PersistentCollection {#4384 …}
+favourites: Doctrine\ORM\PersistentCollection {#4386 …}
+notifications: Doctrine\ORM\PersistentCollection {#4388 …}
-id: 335873
-bodyTs: "'approach':11 'end':7 'flashgnash':14 'help':5 'i.e':15 'instal':21 'lazy.vim':17 'let':19 'neovim':22 'plugin':26 'propos':12 'thank':1 'use':9,16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7671081"
+editedAt: null
+createdAt: DateTimeImmutable @1706068071 {#4376
date: 2024-01-24 04:47:51.0 +01:00
}
} |
|
Show voter details
|
32 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4377
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4108 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
For your treesitter issue\n
\n
[github.com/clvx/nix-files/…/nvim-treesitter.lua#L…](https://github.com/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#L2)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1728162936 {#4125
date: 2024-10-05 23:15:36.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4124 …}
+nested: Doctrine\ORM\PersistentCollection {#4123 …}
+votes: Doctrine\ORM\PersistentCollection {#4114 …}
+reports: Doctrine\ORM\PersistentCollection {#4117 …}
+favourites: Doctrine\ORM\PersistentCollection {#4112 …}
+notifications: Doctrine\ORM\PersistentCollection {#4110 …}
-id: 335809
-bodyTs: "'/clvx/nix-files/':7 '/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#l2)':12 '/nvim-treesitter.lua':8 'github.com':6,11 'github.com/clvx/nix-files/':5 'github.com/clvx/nix-files/blob/master/config/nvim/plugins/nvim-treesitter.lua#l2)':10 'issu':4 'l':9 'treesitt':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7669906"
+editedAt: null
+createdAt: DateTimeImmutable @1706065799 {#4130
date: 2024-01-24 04:09:59.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: "Thank you for your help. I ended up using the approach proposed by @flashgnash (*i.e.* using lazy.vim) which let me install neovim and all my plugins."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706068071 {#4375
date: 2024-01-24 04:47:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@flashgnash"
"@clvx@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4378 …}
+nested: Doctrine\ORM\PersistentCollection {#4380 …}
+votes: Doctrine\ORM\PersistentCollection {#4382 …}
+reports: Doctrine\ORM\PersistentCollection {#4384 …}
+favourites: Doctrine\ORM\PersistentCollection {#4386 …}
+notifications: Doctrine\ORM\PersistentCollection {#4388 …}
-id: 335873
-bodyTs: "'approach':11 'end':7 'flashgnash':14 'help':5 'i.e':15 'instal':21 'lazy.vim':17 'let':19 'neovim':22 'plugin':26 'propos':12 'thank':1 'use':9,16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7671081"
+editedAt: null
+createdAt: DateTimeImmutable @1706068071 {#4376
date: 2024-01-24 04:47:51.0 +01:00
}
} |
|
Show voter details
|
33 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
34 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4205
+user: App\Entity\User {#4218 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Not sure about 1, but 2 and 3 both have the same answer. Both TSInstall and Mason are just trying to install other software packages on your system, and you’re on NixOS, so of course they can’t do that. You don’t install your software, you declare it. Add the Treesitter parsers you need right next to your plugins (there is a sub collection under the vimPlugins collection just for Treesitter parsers), and put whatever Mason would be installing into your user packages instead.\n
\n
That said, I agree with the other commenter. Even though the community has done a lot of work on rich config options for Neovim, they’re just too far away from the normal way of doing things in the Neovim world, and plenty of plugins are written in ways that assume it’s configured in “normal” ways. Plus configuring Neovim is already kinda like assembling your own car from parts in any case, so it’s honestly better to just use nix to install Lazyvim or whatever flavor of choice and let it handle the plugin management/config. And believe me, I really tried to do it all in Nix, I wanted to do it that way. But it’s just not worth the headache at this point
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1728324831 {#4199
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4206 …}
+nested: Doctrine\ORM\PersistentCollection {#4208 …}
+votes: Doctrine\ORM\PersistentCollection {#4210 …}
+reports: Doctrine\ORM\PersistentCollection {#4212 …}
+favourites: Doctrine\ORM\PersistentCollection {#4214 …}
+notifications: Doctrine\ORM\PersistentCollection {#4216 …}
-id: 335818
-bodyTs: "'1':4 '2':6 '3':8 'add':51 'agre':90 'alreadi':148 'answer':13 'assembl':151 'assum':137 'away':116 'believ':185 'better':164 'car':154 'case':159 'choic':176 'collect':66,70 'comment':94 'communiti':98 'config':107 'configur':140,145 'cours':36 'declar':49 'done':100 'even':95 'far':115 'flavor':174 'handl':180 'headach':210 'honest':163 'instal':22,45,81,170 'instead':86 'kinda':149 'lazyvim':171 'let':178 'like':150 'lot':102 'management/config':183 'mason':17,78 'need':56 'neovim':110,126,146 'next':58 'nix':168,195 'nixo':33 'normal':119,142 'option':108 'packag':25,85 'parser':54,74 'part':156 'plenti':129 'plugin':61,131,182 'plus':144 'point':213 'put':76 're':31,112 'realli':188 'rich':106 'right':57 'said':88 'softwar':24,47 'sub':65 'sure':2 'system':28 'thing':123 'though':96 'treesitt':53,73 'tri':20,189 'tsinstal':15 'use':167 'user':84 'vimplugin':69 'want':197 'way':120,135,143,202 'whatev':77,173 'work':104 'world':127 'worth':208 'would':79 'written':133"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6960591"
+editedAt: DateTimeImmutable @1728156939 {#4200
date: 2024-10-05 21:35:39.0 +02:00
}
+createdAt: DateTimeImmutable @1706066173 {#4201
date: 2024-01-24 04:16:13.0 +01:00
}
} |
|
Show voter details
|
35 |
DENIED
|
edit
|
App\Entity\EntryComment {#4205
+user: App\Entity\User {#4218 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Not sure about 1, but 2 and 3 both have the same answer. Both TSInstall and Mason are just trying to install other software packages on your system, and you’re on NixOS, so of course they can’t do that. You don’t install your software, you declare it. Add the Treesitter parsers you need right next to your plugins (there is a sub collection under the vimPlugins collection just for Treesitter parsers), and put whatever Mason would be installing into your user packages instead.\n
\n
That said, I agree with the other commenter. Even though the community has done a lot of work on rich config options for Neovim, they’re just too far away from the normal way of doing things in the Neovim world, and plenty of plugins are written in ways that assume it’s configured in “normal” ways. Plus configuring Neovim is already kinda like assembling your own car from parts in any case, so it’s honestly better to just use nix to install Lazyvim or whatever flavor of choice and let it handle the plugin management/config. And believe me, I really tried to do it all in Nix, I wanted to do it that way. But it’s just not worth the headache at this point
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1728324831 {#4199
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4206 …}
+nested: Doctrine\ORM\PersistentCollection {#4208 …}
+votes: Doctrine\ORM\PersistentCollection {#4210 …}
+reports: Doctrine\ORM\PersistentCollection {#4212 …}
+favourites: Doctrine\ORM\PersistentCollection {#4214 …}
+notifications: Doctrine\ORM\PersistentCollection {#4216 …}
-id: 335818
-bodyTs: "'1':4 '2':6 '3':8 'add':51 'agre':90 'alreadi':148 'answer':13 'assembl':151 'assum':137 'away':116 'believ':185 'better':164 'car':154 'case':159 'choic':176 'collect':66,70 'comment':94 'communiti':98 'config':107 'configur':140,145 'cours':36 'declar':49 'done':100 'even':95 'far':115 'flavor':174 'handl':180 'headach':210 'honest':163 'instal':22,45,81,170 'instead':86 'kinda':149 'lazyvim':171 'let':178 'like':150 'lot':102 'management/config':183 'mason':17,78 'need':56 'neovim':110,126,146 'next':58 'nix':168,195 'nixo':33 'normal':119,142 'option':108 'packag':25,85 'parser':54,74 'part':156 'plenti':129 'plugin':61,131,182 'plus':144 'point':213 'put':76 're':31,112 'realli':188 'rich':106 'right':57 'said':88 'softwar':24,47 'sub':65 'sure':2 'system':28 'thing':123 'though':96 'treesitt':53,73 'tri':20,189 'tsinstal':15 'use':167 'user':84 'vimplugin':69 'want':197 'way':120,135,143,202 'whatev':77,173 'work':104 'world':127 'worth':208 'would':79 'written':133"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6960591"
+editedAt: DateTimeImmutable @1728156939 {#4200
date: 2024-10-05 21:35:39.0 +02:00
}
+createdAt: DateTimeImmutable @1706066173 {#4201
date: 2024-01-24 04:16:13.0 +01:00
}
} |
|
Show voter details
|
36 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4205
+user: App\Entity\User {#4218 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Not sure about 1, but 2 and 3 both have the same answer. Both TSInstall and Mason are just trying to install other software packages on your system, and you’re on NixOS, so of course they can’t do that. You don’t install your software, you declare it. Add the Treesitter parsers you need right next to your plugins (there is a sub collection under the vimPlugins collection just for Treesitter parsers), and put whatever Mason would be installing into your user packages instead.\n
\n
That said, I agree with the other commenter. Even though the community has done a lot of work on rich config options for Neovim, they’re just too far away from the normal way of doing things in the Neovim world, and plenty of plugins are written in ways that assume it’s configured in “normal” ways. Plus configuring Neovim is already kinda like assembling your own car from parts in any case, so it’s honestly better to just use nix to install Lazyvim or whatever flavor of choice and let it handle the plugin management/config. And believe me, I really tried to do it all in Nix, I wanted to do it that way. But it’s just not worth the headache at this point
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1728324831 {#4199
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4206 …}
+nested: Doctrine\ORM\PersistentCollection {#4208 …}
+votes: Doctrine\ORM\PersistentCollection {#4210 …}
+reports: Doctrine\ORM\PersistentCollection {#4212 …}
+favourites: Doctrine\ORM\PersistentCollection {#4214 …}
+notifications: Doctrine\ORM\PersistentCollection {#4216 …}
-id: 335818
-bodyTs: "'1':4 '2':6 '3':8 'add':51 'agre':90 'alreadi':148 'answer':13 'assembl':151 'assum':137 'away':116 'believ':185 'better':164 'car':154 'case':159 'choic':176 'collect':66,70 'comment':94 'communiti':98 'config':107 'configur':140,145 'cours':36 'declar':49 'done':100 'even':95 'far':115 'flavor':174 'handl':180 'headach':210 'honest':163 'instal':22,45,81,170 'instead':86 'kinda':149 'lazyvim':171 'let':178 'like':150 'lot':102 'management/config':183 'mason':17,78 'need':56 'neovim':110,126,146 'next':58 'nix':168,195 'nixo':33 'normal':119,142 'option':108 'packag':25,85 'parser':54,74 'part':156 'plenti':129 'plugin':61,131,182 'plus':144 'point':213 'put':76 're':31,112 'realli':188 'rich':106 'right':57 'said':88 'softwar':24,47 'sub':65 'sure':2 'system':28 'thing':123 'though':96 'treesitt':53,73 'tri':20,189 'tsinstal':15 'use':167 'user':84 'vimplugin':69 'want':197 'way':120,135,143,202 'whatev':77,173 'work':104 'world':127 'worth':208 'would':79 'written':133"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6960591"
+editedAt: DateTimeImmutable @1728156939 {#4200
date: 2024-10-05 21:35:39.0 +02:00
}
+createdAt: DateTimeImmutable @1706066173 {#4201
date: 2024-01-24 04:16:13.0 +01:00
}
} |
|
Show voter details
|
37 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
38 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4393
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4205
+user: App\Entity\User {#4218 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Not sure about 1, but 2 and 3 both have the same answer. Both TSInstall and Mason are just trying to install other software packages on your system, and you’re on NixOS, so of course they can’t do that. You don’t install your software, you declare it. Add the Treesitter parsers you need right next to your plugins (there is a sub collection under the vimPlugins collection just for Treesitter parsers), and put whatever Mason would be installing into your user packages instead.\n
\n
That said, I agree with the other commenter. Even though the community has done a lot of work on rich config options for Neovim, they’re just too far away from the normal way of doing things in the Neovim world, and plenty of plugins are written in ways that assume it’s configured in “normal” ways. Plus configuring Neovim is already kinda like assembling your own car from parts in any case, so it’s honestly better to just use nix to install Lazyvim or whatever flavor of choice and let it handle the plugin management/config. And believe me, I really tried to do it all in Nix, I wanted to do it that way. But it’s just not worth the headache at this point
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1728324831 {#4199
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4206 …}
+nested: Doctrine\ORM\PersistentCollection {#4208 …}
+votes: Doctrine\ORM\PersistentCollection {#4210 …}
+reports: Doctrine\ORM\PersistentCollection {#4212 …}
+favourites: Doctrine\ORM\PersistentCollection {#4214 …}
+notifications: Doctrine\ORM\PersistentCollection {#4216 …}
-id: 335818
-bodyTs: "'1':4 '2':6 '3':8 'add':51 'agre':90 'alreadi':148 'answer':13 'assembl':151 'assum':137 'away':116 'believ':185 'better':164 'car':154 'case':159 'choic':176 'collect':66,70 'comment':94 'communiti':98 'config':107 'configur':140,145 'cours':36 'declar':49 'done':100 'even':95 'far':115 'flavor':174 'handl':180 'headach':210 'honest':163 'instal':22,45,81,170 'instead':86 'kinda':149 'lazyvim':171 'let':178 'like':150 'lot':102 'management/config':183 'mason':17,78 'need':56 'neovim':110,126,146 'next':58 'nix':168,195 'nixo':33 'normal':119,142 'option':108 'packag':25,85 'parser':54,74 'part':156 'plenti':129 'plugin':61,131,182 'plus':144 'point':213 'put':76 're':31,112 'realli':188 'rich':106 'right':57 'said':88 'softwar':24,47 'sub':65 'sure':2 'system':28 'thing':123 'though':96 'treesitt':53,73 'tri':20,189 'tsinstal':15 'use':167 'user':84 'vimplugin':69 'want':197 'way':120,135,143,202 'whatev':77,173 'work':104 'world':127 'worth':208 'would':79 'written':133"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6960591"
+editedAt: DateTimeImmutable @1728156939 {#4200
date: 2024-10-05 21:35:39.0 +02:00
}
+createdAt: DateTimeImmutable @1706066173 {#4201
date: 2024-01-24 04:16:13.0 +01:00
}
}
+root: App\Entity\EntryComment {#4205}
+body: """
Thanks for this feedback, it helps me feel a little bit less stupid :) With everything setup in NixOS documentation for neovim in appearance I thought really dumb to not be able to have it worked.\n
\n
Using the approach proposed by @flashgnash (*i.e.* using lazy.vim) let me install neovim and all my plugins.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706067896 {#4390
date: 2024-01-24 04:44:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@palebluethought@lemmy.world"
"@wwwgem@lemmy.ml"
"@palebluethought@lemmy.world"
"@flagnash"
"@wwwgem@lemmy.ml"
"@palebluethought@lemmy.world"
"@flagnash"
"@flashgnash"
]
+children: Doctrine\ORM\PersistentCollection {#4394 …}
+nested: Doctrine\ORM\PersistentCollection {#4396 …}
+votes: Doctrine\ORM\PersistentCollection {#4398 …}
+reports: Doctrine\ORM\PersistentCollection {#4400 …}
+favourites: Doctrine\ORM\PersistentCollection {#4402 …}
+notifications: Doctrine\ORM\PersistentCollection {#4404 …}
-id: 335869
-bodyTs: "'abl':31 'appear':23 'approach':38 'bit':11 'document':19 'dumb':27 'everyth':15 'feedback':4 'feel':8 'flashgnash':41 'help':6 'i.e':42 'instal':47 'lazy.vim':44 'less':12 'let':45 'littl':10 'neovim':21,48 'nixo':18 'plugin':52 'propos':39 'realli':26 'setup':16 'stupid':13 'thank':1 'thought':25 'use':36,43 'work':35"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7670990"
+editedAt: DateTimeImmutable @1728162670 {#4391
date: 2024-10-05 23:11:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706067896 {#4392
date: 2024-01-24 04:44:56.0 +01:00
}
} |
|
Show voter details
|
39 |
DENIED
|
edit
|
App\Entity\EntryComment {#4393
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4205
+user: App\Entity\User {#4218 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Not sure about 1, but 2 and 3 both have the same answer. Both TSInstall and Mason are just trying to install other software packages on your system, and you’re on NixOS, so of course they can’t do that. You don’t install your software, you declare it. Add the Treesitter parsers you need right next to your plugins (there is a sub collection under the vimPlugins collection just for Treesitter parsers), and put whatever Mason would be installing into your user packages instead.\n
\n
That said, I agree with the other commenter. Even though the community has done a lot of work on rich config options for Neovim, they’re just too far away from the normal way of doing things in the Neovim world, and plenty of plugins are written in ways that assume it’s configured in “normal” ways. Plus configuring Neovim is already kinda like assembling your own car from parts in any case, so it’s honestly better to just use nix to install Lazyvim or whatever flavor of choice and let it handle the plugin management/config. And believe me, I really tried to do it all in Nix, I wanted to do it that way. But it’s just not worth the headache at this point
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1728324831 {#4199
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4206 …}
+nested: Doctrine\ORM\PersistentCollection {#4208 …}
+votes: Doctrine\ORM\PersistentCollection {#4210 …}
+reports: Doctrine\ORM\PersistentCollection {#4212 …}
+favourites: Doctrine\ORM\PersistentCollection {#4214 …}
+notifications: Doctrine\ORM\PersistentCollection {#4216 …}
-id: 335818
-bodyTs: "'1':4 '2':6 '3':8 'add':51 'agre':90 'alreadi':148 'answer':13 'assembl':151 'assum':137 'away':116 'believ':185 'better':164 'car':154 'case':159 'choic':176 'collect':66,70 'comment':94 'communiti':98 'config':107 'configur':140,145 'cours':36 'declar':49 'done':100 'even':95 'far':115 'flavor':174 'handl':180 'headach':210 'honest':163 'instal':22,45,81,170 'instead':86 'kinda':149 'lazyvim':171 'let':178 'like':150 'lot':102 'management/config':183 'mason':17,78 'need':56 'neovim':110,126,146 'next':58 'nix':168,195 'nixo':33 'normal':119,142 'option':108 'packag':25,85 'parser':54,74 'part':156 'plenti':129 'plugin':61,131,182 'plus':144 'point':213 'put':76 're':31,112 'realli':188 'rich':106 'right':57 'said':88 'softwar':24,47 'sub':65 'sure':2 'system':28 'thing':123 'though':96 'treesitt':53,73 'tri':20,189 'tsinstal':15 'use':167 'user':84 'vimplugin':69 'want':197 'way':120,135,143,202 'whatev':77,173 'work':104 'world':127 'worth':208 'would':79 'written':133"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6960591"
+editedAt: DateTimeImmutable @1728156939 {#4200
date: 2024-10-05 21:35:39.0 +02:00
}
+createdAt: DateTimeImmutable @1706066173 {#4201
date: 2024-01-24 04:16:13.0 +01:00
}
}
+root: App\Entity\EntryComment {#4205}
+body: """
Thanks for this feedback, it helps me feel a little bit less stupid :) With everything setup in NixOS documentation for neovim in appearance I thought really dumb to not be able to have it worked.\n
\n
Using the approach proposed by @flashgnash (*i.e.* using lazy.vim) let me install neovim and all my plugins.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706067896 {#4390
date: 2024-01-24 04:44:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@palebluethought@lemmy.world"
"@wwwgem@lemmy.ml"
"@palebluethought@lemmy.world"
"@flagnash"
"@wwwgem@lemmy.ml"
"@palebluethought@lemmy.world"
"@flagnash"
"@flashgnash"
]
+children: Doctrine\ORM\PersistentCollection {#4394 …}
+nested: Doctrine\ORM\PersistentCollection {#4396 …}
+votes: Doctrine\ORM\PersistentCollection {#4398 …}
+reports: Doctrine\ORM\PersistentCollection {#4400 …}
+favourites: Doctrine\ORM\PersistentCollection {#4402 …}
+notifications: Doctrine\ORM\PersistentCollection {#4404 …}
-id: 335869
-bodyTs: "'abl':31 'appear':23 'approach':38 'bit':11 'document':19 'dumb':27 'everyth':15 'feedback':4 'feel':8 'flashgnash':41 'help':6 'i.e':42 'instal':47 'lazy.vim':44 'less':12 'let':45 'littl':10 'neovim':21,48 'nixo':18 'plugin':52 'propos':39 'realli':26 'setup':16 'stupid':13 'thank':1 'thought':25 'use':36,43 'work':35"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7670990"
+editedAt: DateTimeImmutable @1728162670 {#4391
date: 2024-10-05 23:11:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706067896 {#4392
date: 2024-01-24 04:44:56.0 +01:00
}
} |
|
Show voter details
|
40 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4393
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4205
+user: App\Entity\User {#4218 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Not sure about 1, but 2 and 3 both have the same answer. Both TSInstall and Mason are just trying to install other software packages on your system, and you’re on NixOS, so of course they can’t do that. You don’t install your software, you declare it. Add the Treesitter parsers you need right next to your plugins (there is a sub collection under the vimPlugins collection just for Treesitter parsers), and put whatever Mason would be installing into your user packages instead.\n
\n
That said, I agree with the other commenter. Even though the community has done a lot of work on rich config options for Neovim, they’re just too far away from the normal way of doing things in the Neovim world, and plenty of plugins are written in ways that assume it’s configured in “normal” ways. Plus configuring Neovim is already kinda like assembling your own car from parts in any case, so it’s honestly better to just use nix to install Lazyvim or whatever flavor of choice and let it handle the plugin management/config. And believe me, I really tried to do it all in Nix, I wanted to do it that way. But it’s just not worth the headache at this point
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1728324831 {#4199
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4206 …}
+nested: Doctrine\ORM\PersistentCollection {#4208 …}
+votes: Doctrine\ORM\PersistentCollection {#4210 …}
+reports: Doctrine\ORM\PersistentCollection {#4212 …}
+favourites: Doctrine\ORM\PersistentCollection {#4214 …}
+notifications: Doctrine\ORM\PersistentCollection {#4216 …}
-id: 335818
-bodyTs: "'1':4 '2':6 '3':8 'add':51 'agre':90 'alreadi':148 'answer':13 'assembl':151 'assum':137 'away':116 'believ':185 'better':164 'car':154 'case':159 'choic':176 'collect':66,70 'comment':94 'communiti':98 'config':107 'configur':140,145 'cours':36 'declar':49 'done':100 'even':95 'far':115 'flavor':174 'handl':180 'headach':210 'honest':163 'instal':22,45,81,170 'instead':86 'kinda':149 'lazyvim':171 'let':178 'like':150 'lot':102 'management/config':183 'mason':17,78 'need':56 'neovim':110,126,146 'next':58 'nix':168,195 'nixo':33 'normal':119,142 'option':108 'packag':25,85 'parser':54,74 'part':156 'plenti':129 'plugin':61,131,182 'plus':144 'point':213 'put':76 're':31,112 'realli':188 'rich':106 'right':57 'said':88 'softwar':24,47 'sub':65 'sure':2 'system':28 'thing':123 'though':96 'treesitt':53,73 'tri':20,189 'tsinstal':15 'use':167 'user':84 'vimplugin':69 'want':197 'way':120,135,143,202 'whatev':77,173 'work':104 'world':127 'worth':208 'would':79 'written':133"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6960591"
+editedAt: DateTimeImmutable @1728156939 {#4200
date: 2024-10-05 21:35:39.0 +02:00
}
+createdAt: DateTimeImmutable @1706066173 {#4201
date: 2024-01-24 04:16:13.0 +01:00
}
}
+root: App\Entity\EntryComment {#4205}
+body: """
Thanks for this feedback, it helps me feel a little bit less stupid :) With everything setup in NixOS documentation for neovim in appearance I thought really dumb to not be able to have it worked.\n
\n
Using the approach proposed by @flashgnash (*i.e.* using lazy.vim) let me install neovim and all my plugins.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706067896 {#4390
date: 2024-01-24 04:44:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@palebluethought@lemmy.world"
"@wwwgem@lemmy.ml"
"@palebluethought@lemmy.world"
"@flagnash"
"@wwwgem@lemmy.ml"
"@palebluethought@lemmy.world"
"@flagnash"
"@flashgnash"
]
+children: Doctrine\ORM\PersistentCollection {#4394 …}
+nested: Doctrine\ORM\PersistentCollection {#4396 …}
+votes: Doctrine\ORM\PersistentCollection {#4398 …}
+reports: Doctrine\ORM\PersistentCollection {#4400 …}
+favourites: Doctrine\ORM\PersistentCollection {#4402 …}
+notifications: Doctrine\ORM\PersistentCollection {#4404 …}
-id: 335869
-bodyTs: "'abl':31 'appear':23 'approach':38 'bit':11 'document':19 'dumb':27 'everyth':15 'feedback':4 'feel':8 'flashgnash':41 'help':6 'i.e':42 'instal':47 'lazy.vim':44 'less':12 'let':45 'littl':10 'neovim':21,48 'nixo':18 'plugin':52 'propos':39 'realli':26 'setup':16 'stupid':13 'thank':1 'thought':25 'use':36,43 'work':35"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/7670990"
+editedAt: DateTimeImmutable @1728162670 {#4391
date: 2024-10-05 23:11:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706067896 {#4392
date: 2024-01-24 04:44:56.0 +01:00
}
} |
|
Show voter details
|
41 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
42 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4408
+user: Proxies\__CG__\App\Entity\User {#4409 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4205
+user: App\Entity\User {#4218 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Not sure about 1, but 2 and 3 both have the same answer. Both TSInstall and Mason are just trying to install other software packages on your system, and you’re on NixOS, so of course they can’t do that. You don’t install your software, you declare it. Add the Treesitter parsers you need right next to your plugins (there is a sub collection under the vimPlugins collection just for Treesitter parsers), and put whatever Mason would be installing into your user packages instead.\n
\n
That said, I agree with the other commenter. Even though the community has done a lot of work on rich config options for Neovim, they’re just too far away from the normal way of doing things in the Neovim world, and plenty of plugins are written in ways that assume it’s configured in “normal” ways. Plus configuring Neovim is already kinda like assembling your own car from parts in any case, so it’s honestly better to just use nix to install Lazyvim or whatever flavor of choice and let it handle the plugin management/config. And believe me, I really tried to do it all in Nix, I wanted to do it that way. But it’s just not worth the headache at this point
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1728324831 {#4199
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4206 …}
+nested: Doctrine\ORM\PersistentCollection {#4208 …}
+votes: Doctrine\ORM\PersistentCollection {#4210 …}
+reports: Doctrine\ORM\PersistentCollection {#4212 …}
+favourites: Doctrine\ORM\PersistentCollection {#4214 …}
+notifications: Doctrine\ORM\PersistentCollection {#4216 …}
-id: 335818
-bodyTs: "'1':4 '2':6 '3':8 'add':51 'agre':90 'alreadi':148 'answer':13 'assembl':151 'assum':137 'away':116 'believ':185 'better':164 'car':154 'case':159 'choic':176 'collect':66,70 'comment':94 'communiti':98 'config':107 'configur':140,145 'cours':36 'declar':49 'done':100 'even':95 'far':115 'flavor':174 'handl':180 'headach':210 'honest':163 'instal':22,45,81,170 'instead':86 'kinda':149 'lazyvim':171 'let':178 'like':150 'lot':102 'management/config':183 'mason':17,78 'need':56 'neovim':110,126,146 'next':58 'nix':168,195 'nixo':33 'normal':119,142 'option':108 'packag':25,85 'parser':54,74 'part':156 'plenti':129 'plugin':61,131,182 'plus':144 'point':213 'put':76 're':31,112 'realli':188 'rich':106 'right':57 'said':88 'softwar':24,47 'sub':65 'sure':2 'system':28 'thing':123 'though':96 'treesitt':53,73 'tri':20,189 'tsinstal':15 'use':167 'user':84 'vimplugin':69 'want':197 'way':120,135,143,202 'whatev':77,173 'work':104 'world':127 'worth':208 'would':79 'written':133"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6960591"
+editedAt: DateTimeImmutable @1728156939 {#4200
date: 2024-10-05 21:35:39.0 +02:00
}
+createdAt: DateTimeImmutable @1706066173 {#4201
date: 2024-01-24 04:16:13.0 +01:00
}
}
+root: App\Entity\EntryComment {#4205}
+body: "It’s also a nightmare if you want your config to work with both nix and non nix platforms. If I’m using my config on windows or at work, I’m not going to have nix and home manager to interpret the nix version of my vim config. On my systems with home manager, I’d like be able to install my nvim config as part of home manager rebuild. If I have home manager pull my configs git repo, it causes lazy to freak out whenever I try to update my plugins. It’d be nice to have some sort of integration with lazy that exists with cargo and similar tools but it doesn’t look like anyone’s been working on it."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706110071 {#4406
date: 2024-01-24 16:27:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@palebluethought@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4410 …}
+nested: Doctrine\ORM\PersistentCollection {#4412 …}
+votes: Doctrine\ORM\PersistentCollection {#4414 …}
+reports: Doctrine\ORM\PersistentCollection {#4416 …}
+favourites: Doctrine\ORM\PersistentCollection {#4418 …}
+notifications: Doctrine\ORM\PersistentCollection {#4420 …}
-id: 336857
-bodyTs: "'abl':60 'also':3 'anyon':120 'cargo':110 'caus':83 'config':10,25,49,65,79 'd':57,96 'doesn':116 'exist':108 'freak':86 'git':80 'go':34 'home':39,54,69,75 'instal':62 'integr':104 'interpret':42 'lazi':84,106 'like':58,119 'look':118 'm':22,32 'manag':40,55,70,76 'nice':98 'nightmar':5 'nix':15,18,37,44 'non':17 'nvim':64 'part':67 'platform':19 'plugin':94 'pull':77 'rebuild':71 'repo':81 'similar':112 'sort':102 'system':52 'tool':113 'tri':90 'updat':92 'use':23 'version':45 'vim':48 'want':8 'whenev':88 'window':27 'work':12,30,123"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/7987923"
+editedAt: null
+createdAt: DateTimeImmutable @1706110071 {#4407
date: 2024-01-24 16:27:51.0 +01:00
}
} |
|
Show voter details
|
43 |
DENIED
|
edit
|
App\Entity\EntryComment {#4408
+user: Proxies\__CG__\App\Entity\User {#4409 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4205
+user: App\Entity\User {#4218 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Not sure about 1, but 2 and 3 both have the same answer. Both TSInstall and Mason are just trying to install other software packages on your system, and you’re on NixOS, so of course they can’t do that. You don’t install your software, you declare it. Add the Treesitter parsers you need right next to your plugins (there is a sub collection under the vimPlugins collection just for Treesitter parsers), and put whatever Mason would be installing into your user packages instead.\n
\n
That said, I agree with the other commenter. Even though the community has done a lot of work on rich config options for Neovim, they’re just too far away from the normal way of doing things in the Neovim world, and plenty of plugins are written in ways that assume it’s configured in “normal” ways. Plus configuring Neovim is already kinda like assembling your own car from parts in any case, so it’s honestly better to just use nix to install Lazyvim or whatever flavor of choice and let it handle the plugin management/config. And believe me, I really tried to do it all in Nix, I wanted to do it that way. But it’s just not worth the headache at this point
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1728324831 {#4199
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4206 …}
+nested: Doctrine\ORM\PersistentCollection {#4208 …}
+votes: Doctrine\ORM\PersistentCollection {#4210 …}
+reports: Doctrine\ORM\PersistentCollection {#4212 …}
+favourites: Doctrine\ORM\PersistentCollection {#4214 …}
+notifications: Doctrine\ORM\PersistentCollection {#4216 …}
-id: 335818
-bodyTs: "'1':4 '2':6 '3':8 'add':51 'agre':90 'alreadi':148 'answer':13 'assembl':151 'assum':137 'away':116 'believ':185 'better':164 'car':154 'case':159 'choic':176 'collect':66,70 'comment':94 'communiti':98 'config':107 'configur':140,145 'cours':36 'declar':49 'done':100 'even':95 'far':115 'flavor':174 'handl':180 'headach':210 'honest':163 'instal':22,45,81,170 'instead':86 'kinda':149 'lazyvim':171 'let':178 'like':150 'lot':102 'management/config':183 'mason':17,78 'need':56 'neovim':110,126,146 'next':58 'nix':168,195 'nixo':33 'normal':119,142 'option':108 'packag':25,85 'parser':54,74 'part':156 'plenti':129 'plugin':61,131,182 'plus':144 'point':213 'put':76 're':31,112 'realli':188 'rich':106 'right':57 'said':88 'softwar':24,47 'sub':65 'sure':2 'system':28 'thing':123 'though':96 'treesitt':53,73 'tri':20,189 'tsinstal':15 'use':167 'user':84 'vimplugin':69 'want':197 'way':120,135,143,202 'whatev':77,173 'work':104 'world':127 'worth':208 'would':79 'written':133"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6960591"
+editedAt: DateTimeImmutable @1728156939 {#4200
date: 2024-10-05 21:35:39.0 +02:00
}
+createdAt: DateTimeImmutable @1706066173 {#4201
date: 2024-01-24 04:16:13.0 +01:00
}
}
+root: App\Entity\EntryComment {#4205}
+body: "It’s also a nightmare if you want your config to work with both nix and non nix platforms. If I’m using my config on windows or at work, I’m not going to have nix and home manager to interpret the nix version of my vim config. On my systems with home manager, I’d like be able to install my nvim config as part of home manager rebuild. If I have home manager pull my configs git repo, it causes lazy to freak out whenever I try to update my plugins. It’d be nice to have some sort of integration with lazy that exists with cargo and similar tools but it doesn’t look like anyone’s been working on it."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706110071 {#4406
date: 2024-01-24 16:27:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@palebluethought@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4410 …}
+nested: Doctrine\ORM\PersistentCollection {#4412 …}
+votes: Doctrine\ORM\PersistentCollection {#4414 …}
+reports: Doctrine\ORM\PersistentCollection {#4416 …}
+favourites: Doctrine\ORM\PersistentCollection {#4418 …}
+notifications: Doctrine\ORM\PersistentCollection {#4420 …}
-id: 336857
-bodyTs: "'abl':60 'also':3 'anyon':120 'cargo':110 'caus':83 'config':10,25,49,65,79 'd':57,96 'doesn':116 'exist':108 'freak':86 'git':80 'go':34 'home':39,54,69,75 'instal':62 'integr':104 'interpret':42 'lazi':84,106 'like':58,119 'look':118 'm':22,32 'manag':40,55,70,76 'nice':98 'nightmar':5 'nix':15,18,37,44 'non':17 'nvim':64 'part':67 'platform':19 'plugin':94 'pull':77 'rebuild':71 'repo':81 'similar':112 'sort':102 'system':52 'tool':113 'tri':90 'updat':92 'use':23 'version':45 'vim':48 'want':8 'whenev':88 'window':27 'work':12,30,123"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/7987923"
+editedAt: null
+createdAt: DateTimeImmutable @1706110071 {#4407
date: 2024-01-24 16:27:51.0 +01:00
}
} |
|
Show voter details
|
44 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4408
+user: Proxies\__CG__\App\Entity\User {#4409 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: App\Entity\EntryComment {#4205
+user: App\Entity\User {#4218 …}
+entry: App\Entity\Entry {#2412}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: """
Not sure about 1, but 2 and 3 both have the same answer. Both TSInstall and Mason are just trying to install other software packages on your system, and you’re on NixOS, so of course they can’t do that. You don’t install your software, you declare it. Add the Treesitter parsers you need right next to your plugins (there is a sub collection under the vimPlugins collection just for Treesitter parsers), and put whatever Mason would be installing into your user packages instead.\n
\n
That said, I agree with the other commenter. Even though the community has done a lot of work on rich config options for Neovim, they’re just too far away from the normal way of doing things in the Neovim world, and plenty of plugins are written in ways that assume it’s configured in “normal” ways. Plus configuring Neovim is already kinda like assembling your own car from parts in any case, so it’s honestly better to just use nix to install Lazyvim or whatever flavor of choice and let it handle the plugin management/config. And believe me, I really tried to do it all in Nix, I wanted to do it that way. But it’s just not worth the headache at this point
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1728324831 {#4199
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4206 …}
+nested: Doctrine\ORM\PersistentCollection {#4208 …}
+votes: Doctrine\ORM\PersistentCollection {#4210 …}
+reports: Doctrine\ORM\PersistentCollection {#4212 …}
+favourites: Doctrine\ORM\PersistentCollection {#4214 …}
+notifications: Doctrine\ORM\PersistentCollection {#4216 …}
-id: 335818
-bodyTs: "'1':4 '2':6 '3':8 'add':51 'agre':90 'alreadi':148 'answer':13 'assembl':151 'assum':137 'away':116 'believ':185 'better':164 'car':154 'case':159 'choic':176 'collect':66,70 'comment':94 'communiti':98 'config':107 'configur':140,145 'cours':36 'declar':49 'done':100 'even':95 'far':115 'flavor':174 'handl':180 'headach':210 'honest':163 'instal':22,45,81,170 'instead':86 'kinda':149 'lazyvim':171 'let':178 'like':150 'lot':102 'management/config':183 'mason':17,78 'need':56 'neovim':110,126,146 'next':58 'nix':168,195 'nixo':33 'normal':119,142 'option':108 'packag':25,85 'parser':54,74 'part':156 'plenti':129 'plugin':61,131,182 'plus':144 'point':213 'put':76 're':31,112 'realli':188 'rich':106 'right':57 'said':88 'softwar':24,47 'sub':65 'sure':2 'system':28 'thing':123 'though':96 'treesitt':53,73 'tri':20,189 'tsinstal':15 'use':167 'user':84 'vimplugin':69 'want':197 'way':120,135,143,202 'whatev':77,173 'work':104 'world':127 'worth':208 'would':79 'written':133"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6960591"
+editedAt: DateTimeImmutable @1728156939 {#4200
date: 2024-10-05 21:35:39.0 +02:00
}
+createdAt: DateTimeImmutable @1706066173 {#4201
date: 2024-01-24 04:16:13.0 +01:00
}
}
+root: App\Entity\EntryComment {#4205}
+body: "It’s also a nightmare if you want your config to work with both nix and non nix platforms. If I’m using my config on windows or at work, I’m not going to have nix and home manager to interpret the nix version of my vim config. On my systems with home manager, I’d like be able to install my nvim config as part of home manager rebuild. If I have home manager pull my configs git repo, it causes lazy to freak out whenever I try to update my plugins. It’d be nice to have some sort of integration with lazy that exists with cargo and similar tools but it doesn’t look like anyone’s been working on it."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706110071 {#4406
date: 2024-01-24 16:27:51.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
"@palebluethought@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4410 …}
+nested: Doctrine\ORM\PersistentCollection {#4412 …}
+votes: Doctrine\ORM\PersistentCollection {#4414 …}
+reports: Doctrine\ORM\PersistentCollection {#4416 …}
+favourites: Doctrine\ORM\PersistentCollection {#4418 …}
+notifications: Doctrine\ORM\PersistentCollection {#4420 …}
-id: 336857
-bodyTs: "'abl':60 'also':3 'anyon':120 'cargo':110 'caus':83 'config':10,25,49,65,79 'd':57,96 'doesn':116 'exist':108 'freak':86 'git':80 'go':34 'home':39,54,69,75 'instal':62 'integr':104 'interpret':42 'lazi':84,106 'like':58,119 'look':118 'm':22,32 'manag':40,55,70,76 'nice':98 'nightmar':5 'nix':15,18,37,44 'non':17 'nvim':64 'part':67 'platform':19 'plugin':94 'pull':77 'rebuild':71 'repo':81 'similar':112 'sort':102 'system':52 'tool':113 'tri':90 'updat':92 'use':23 'version':45 'vim':48 'want':8 'whenev':88 'window':27 'work':12,30,123"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/7987923"
+editedAt: null
+createdAt: DateTimeImmutable @1706110071 {#4407
date: 2024-01-24 16:27:51.0 +01:00
}
} |
|
Show voter details
|
45 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
46 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4278
+user: App\Entity\User {#4291 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Take a look at NixVim. I had to convert my entire config to Nix, but in the end it’s now 100% reproduceable"
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1706092346 {#4273
date: 2024-01-24 11:32:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4279 …}
+nested: Doctrine\ORM\PersistentCollection {#4281 …}
+votes: Doctrine\ORM\PersistentCollection {#4283 …}
+reports: Doctrine\ORM\PersistentCollection {#4285 …}
+favourites: Doctrine\ORM\PersistentCollection {#4287 …}
+notifications: Doctrine\ORM\PersistentCollection {#4289 …}
-id: 336368
-bodyTs: "'100':22 'config':12 'convert':9 'end':18 'entir':11 'look':3 'nix':14 'nixvim':5 'reproduc':23 'take':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6969322"
+editedAt: null
+createdAt: DateTimeImmutable @1706092346 {#4274
date: 2024-01-24 11:32:26.0 +01:00
}
} |
|
Show voter details
|
47 |
DENIED
|
edit
|
App\Entity\EntryComment {#4278
+user: App\Entity\User {#4291 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Take a look at NixVim. I had to convert my entire config to Nix, but in the end it’s now 100% reproduceable"
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1706092346 {#4273
date: 2024-01-24 11:32:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4279 …}
+nested: Doctrine\ORM\PersistentCollection {#4281 …}
+votes: Doctrine\ORM\PersistentCollection {#4283 …}
+reports: Doctrine\ORM\PersistentCollection {#4285 …}
+favourites: Doctrine\ORM\PersistentCollection {#4287 …}
+notifications: Doctrine\ORM\PersistentCollection {#4289 …}
-id: 336368
-bodyTs: "'100':22 'config':12 'convert':9 'end':18 'entir':11 'look':3 'nix':14 'nixvim':5 'reproduc':23 'take':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6969322"
+editedAt: null
+createdAt: DateTimeImmutable @1706092346 {#4274
date: 2024-01-24 11:32:26.0 +01:00
}
} |
|
Show voter details
|
48 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4278
+user: App\Entity\User {#4291 …}
+entry: App\Entity\Entry {#2412
+user: Proxies\__CG__\App\Entity\User {#1970 …}
+magazine: App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
+slug: "NixOS-neovim-plugins"
+title: "NixOS - neovim plugins"
+url: null
+body: """
Hello,\n
\n
The NixOS community has been great in helping me with my first steps in this distro. So I’ll ask again few neovim-related issues I couldn’t figure out after 3 days of search.\n
\n
First, let me tell you that I’m trying to import a working neovim setup from another distro. Then let’s see how I’ve configured neovim. I have this in my home.nix file:\n
\n
```\n
\n
<span style="color:#323232;">programs.neovim = {\n
</span><span style="color:#323232;"> enable = true;\n
</span><span style="color:#323232;"> withPython3 = true;\n
</span><span style="color:#323232;"> extraPython3Packages = (ps: with ps; [\n
</span><span style="color:#323232;"> pynvim\n
</span><span style="color:#323232;"> unidecode\n
</span><span style="color:#323232;"> black\n
</span><span style="color:#323232;"> isort\n
</span><span style="color:#323232;"> ]);\n
</span><span style="color:#323232;"> plugins = with pkgs.vimPlugins; [\n
</span><span style="color:#323232;"> { plugin = *plugin_name*;\n
</span><span style="color:#323232;"> type = "lua";\n
</span><span style="color:#323232;"> config = builtins.readFile *config_file_path*;\n
</span><span style="color:#323232;"> }\n
</span><span style="color:#323232;"> ...\n
</span><span style="color:#323232;"> ];\n
</span><span style="color:#323232;">};\n
</span>\n
```\n
\n
(my init.lua file is in the $HOME/.config/nvim folder)\n
\n
With that most of my plugins work. Most because few are troublesome. Let’s focus on three of them:\n
\n
1. I have pkgs.vimPlugins.nvim-comment installed but neovim reports that the command `CommentToggle` is not an editor command\n
2. I have pkgs.vimPlugins.nvim-treesitter installed but the command `TSInstall markdown` returns “could not create parser dir '/nix/store/…/nvim-treesitter/parser ': Vim:E739: read-only file system '”\n
3. I have pkgs.vimPlugins.mason-nvim and pkgs.vimPlugins.mason-lspconfig-nvim installed but runngin `checkhealth mason` returns few warnings:\n
\n
- mason.nvim is not the latest version (I use the unstable channel)\n
- pip: not available spawn: python3 failed with exit code 1 and signal 0. /run/current-system/sw/bin/python3: No module named pip (note that python3_host_prog and python3_host_prog pip are marked “OK”)\n
\n
Thanks again for your assistance.
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 11
+favouriteCount: 27
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728324831 {#2410
date: 2024-10-07 20:13:51.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1884 …}
+votes: Doctrine\ORM\PersistentCollection {#1973 …}
+reports: Doctrine\ORM\PersistentCollection {#1959 …}
+favourites: Doctrine\ORM\PersistentCollection {#1927 …}
+notifications: Doctrine\ORM\PersistentCollection {#2442 …}
+badges: Doctrine\ORM\PersistentCollection {#2440 …}
+children: []
-id: 32711
-titleTs: "'neovim':2 'nixo':1 'plugin':3"
-bodyTs: "'/nix/store':160 '/nvim-treesitter/parser':161 '/run/current-system/sw/bin/python3':211 '0':210 '1':125,207 '2':143 '3':34,169 'anoth':54 'ask':21 'assist':233 'avail':200 'black':83 'builtins.readfile':94 'channel':197 'checkhealth':182 'code':206 'command':136,142,151 'comment':129 'commenttoggl':137 'communiti':4 'config':93,95 'configur':63 'could':155 'couldn':29 'creat':157 'day':35 'dir':159 'distro':17,55 'e739':163 'editor':141 'enabl':73 'exit':205 'extrapython3packages':77 'fail':203 'figur':31 'file':71,96,100,167 'first':13,38 'focus':120 'folder':105 'great':7 'hello':1 'help':9 'home.nix':70 'home/.config/nvim':104 'host':219,223 'import':48 'init.lua':99 'instal':130,148,179 'isort':84 'issu':27 'latest':191 'let':39,57,118 'll':20 'lspconfig':177 'lspconfig-nvim':176 'lua':92 'm':45 'mark':227 'markdown':153 'mason':183 'mason.nvim':187 'modul':213 'name':90,214 'neovim':25,51,64,132 'neovim-rel':24 'nixo':3 'note':216 'nvim':173,178 'ok':228 'parser':158 'path':97 'pip':198,215,225 'pkgs.vimplugins':87 'pkgs.vimplugins.mason':172,175 'pkgs.vimplugins.nvim':128,146 'plugin':85,88,89,111 'prog':220,224 'programs.neovim':72 'ps':78,80 'pynvim':81 'python3':202,218,222 'read':165 'read-on':164 'relat':26 'report':133 'return':154,184 'runngin':181 'search':37 'see':59 'setup':52 'signal':209 'spawn':201 'step':14 'system':168 'tell':41 'thank':229 'three':122 'treesitt':147 'tri':46 'troublesom':117 'true':74,76 'tsinstal':152 'type':91 'unidecod':82 'unstabl':196 'use':194 've':62 'version':192 'vim':162 'warn':186 'withpython3':75 'work':50,112"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706138811
+visibility: "visible "
+apId: "https://lemmy.ml/post/10954164"
+editedAt: DateTimeImmutable @1728109137 {#1850
date: 2024-10-05 08:18:57.0 +02:00
}
+createdAt: DateTimeImmutable @1706052411 {#2420
date: 2024-01-24 00:26:51.0 +01:00
}
}
+magazine: App\Entity\Magazine {#266}
+image: null
+parent: null
+root: null
+body: "Take a look at NixVim. I had to convert my entire config to Nix, but in the end it’s now 100% reproduceable"
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1706092346 {#4273
date: 2024-01-24 11:32:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wwwgem@lemmy.ml"
]
+children: Doctrine\ORM\PersistentCollection {#4279 …}
+nested: Doctrine\ORM\PersistentCollection {#4281 …}
+votes: Doctrine\ORM\PersistentCollection {#4283 …}
+reports: Doctrine\ORM\PersistentCollection {#4285 …}
+favourites: Doctrine\ORM\PersistentCollection {#4287 …}
+notifications: Doctrine\ORM\PersistentCollection {#4289 …}
-id: 336368
-bodyTs: "'100':22 'config':12 'convert':9 'end':18 'entir':11 'look':3 'nix':14 'nixvim':5 'reproduc':23 'take':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6969322"
+editedAt: null
+createdAt: DateTimeImmutable @1706092346 {#4274
date: 2024-01-24 11:32:26.0 +01:00
}
} |
|
Show voter details
|
49 |
DENIED
|
edit
|
App\Entity\Magazine {#266
+icon: Proxies\__CG__\App\Entity\Image {#247 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#276
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#238 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
+entries: Doctrine\ORM\PersistentCollection {#181 …}
+posts: Doctrine\ORM\PersistentCollection {#139 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
+bans: Doctrine\ORM\PersistentCollection {#118 …}
+reports: Doctrine\ORM\PersistentCollection {#104 …}
+badges: Doctrine\ORM\PersistentCollection {#82 …}
+logs: Doctrine\ORM\PersistentCollection {#72 …}
+awards: Doctrine\ORM\PersistentCollection {#61 …}
+categories: Doctrine\ORM\PersistentCollection {#1820 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#270
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#272
date: 2023-11-02 13:51:08.0 +01:00
}
} |
|
Show voter details
|